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:
Fri Sep 27 17:02:21 2019 +0000
Parent:
55:5a441d3b0d57
Child:
57:0c76b15cabaf
Child:
62:ac63dfe15ef9
Commit message:
WIP - Commented out stuff to read in a bunch of files, the files do indeed include 44 byte long headers. Now to start playing loops from one large file!

Changed in this revision

NotchingDemo.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NotchingDemo.cpp	Mon Sep 23 21:09:51 2019 +0000
+++ b/NotchingDemo.cpp	Fri Sep 27 17:02:21 2019 +0000
@@ -553,6 +553,8 @@
     }
 printf("size of file pointer: %d\n\r",sizeof(f22));
 */
+
+/*
     timer_open.reset();
     timer_open.start();
     wavfile1 = fopen("/sd/mydir/SoundDecoder_second/01.wav","rb");
@@ -567,7 +569,7 @@
 
 printf("Size of wavfile 1: %d bytes\n\r",sizeof(wavfile1));
     timer_open.start();
-    wavfile2 = fopen("/sd/mydir/SoundDecoder_second/09.wav","rb");
+    wavfile2 = fopen("/sd/mydir/SoundDecoder_second/02.wav","rb");
     if(wavfile2 == NULL) {
         printf("Cannot Open wavfile2\n\r");
     }
@@ -576,7 +578,7 @@
     timer_open.reset();
 
     timer_open.start();
-    wavfile3 = fopen("/sd/mydir/SoundDecoder_second/02.wav","rb");
+    wavfile3 = fopen("/sd/mydir/SoundDecoder_second/03.wav","rb");
     if(wavfile3 == NULL) {
         printf("Cannot Open wavfile3\n\r");
     }
@@ -632,7 +634,7 @@
     Sound8 = ReadFileInfo(Sound8,wavfile8);
     fclose(wavfile8);     
     
-    
+  /*  
     
             FILE* wavfile9 = fopen("/sd/mydir/SoundDecoder_second/09.wav","rb");
     if(wavfile9 == NULL) {
@@ -730,10 +732,11 @@
     classSoundFile Sound19;
     Sound19 = ReadFileInfo(Sound19,wavfile19);
     fclose(wavfile19);  
+    */
     
-    FILE* f1 = fopen("/sd/mydir/SoundDecoder_second/01.txt","rb");
+    //FILE* f1 = fopen("/sd/mydir/SoundDecoder_second/01.txt","rb");
     
-    fprintf(f1, Sound1.FileInfo.FileData.subchunk2_size);
+    //fprintf(f1, Sound1.FileInfo.FileData.subchunk2_size);