old demo that i want to try in mbed studio

Dependencies:   mbed SDFileSystem_Copy_of_mbed_version I2S

Files at this revision

API Documentation at this revision

Comitter:
roryhand
Date:
Sat Sep 14 19:23:22 2019 +0000
Parent:
51:dab013a902bd
Child:
53:954e8ac1df17
Commit message:
wip - have taken out the fopen and close stuff, but still getting horrid "spitting" noise

Changed in this revision

NotchingDemo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NotchingDemo.cpp	Sat Sep 14 19:16:41 2019 +0000
+++ b/NotchingDemo.cpp	Sat Sep 14 19:23:22 2019 +0000
@@ -321,7 +321,7 @@
     
     {
             
-       BlockFlag = 2; 
+       BlockFlag = 1; 
         
     }
     if (BlockFlag == 0) {
@@ -348,6 +348,7 @@
     } else {//if BlockFlag == 1
 
         //BlockFlag = 1;
+        /*
         wavfile2 =   fopen("/sd/mydir/SoundDecoder_second/09.wav","rb");
         if(wavfile2 == NULL) {
             printf("Cannot Open wavfile2\n\r");
@@ -358,6 +359,7 @@
             printf("Cannot Open wavfile3\n\r");
         }
         fseek(wavfile3,44,SEEK_SET);//go to beginning of audio segment
+        */
         slice2 = 0;
         slice3 = 0;
     }
@@ -501,6 +503,10 @@
     timer_open.stop();
     printf("It took %d useconds to close file\n\r",timer_open.read_us());
 
+
+    wavfile2 = fopen("/sd/mydir/SoundDecoder_second/09.wav","rb");//22
+    wavfile3 = fopen("/sd/mydir/SoundDecoder_second/02.wav","rb");//22
+
     
     Play_WaveFileLoop(Sound1,Sound2,Sound3,wavfile1,wavfile2,wavfile3);
     //Play_WaveFileDual(StartupWav,WavInfo_Startup);