Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Revision 6:6e6229374856, committed 2019-03-16
- Comitter:
- roryhand
- Date:
- Sat Mar 16 22:27:19 2019 +0000
- Parent:
- 5:f42ab6c41551
- Child:
- 7:131ac4231c46
- Commit message:
- Can open up 22 separate files, without closing them, with no problem... WHY is this only working now??.. (end of WIP)
Changed in this revision
| NotchingDemo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/NotchingDemo.cpp Sat Mar 16 22:18:28 2019 +0000
+++ b/NotchingDemo.cpp Sat Mar 16 22:27:19 2019 +0000
@@ -456,43 +456,54 @@
int aaa = 0;
+ string folder;
+ for(int aaa = 0;aaa < 21; aaa ++ )
+ {
+ folder = RootFolder + filename[aaa];
+ FOLDER = folder.c_str();
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
+ printf("we opened This file %d\n\r",aaa);
+
+ }
+ /*
string folder = RootFolder + filename[0];
FOLDER = folder.c_str();
//FILE* mywav0 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[1];
FOLDER = folder.c_str();
//FILE* mywav1 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[2];
FOLDER = folder.c_str();
//FILE* mywav2 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile= fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[3];
FOLDER = folder.c_str();
//FILE* mywav3 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[4];
FOLDER = folder.c_str();
//FILE* mywav4 = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[5];
FOLDER = folder.c_str();
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
//FILE* mywav5 = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
@@ -500,94 +511,94 @@
folder = RootFolder + filename[6];
FOLDER = folder.c_str();
//FILE* mywav6 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[7];
FOLDER = folder.c_str();
//FILE* mywav7 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[8];
FOLDER = folder.c_str();
//FILE* mywav8 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[9];
FOLDER = folder.c_str();
//FILE* mywav9 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[10];
FOLDER = folder.c_str();
//FILE* mywav10 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[11];
FOLDER = folder.c_str();
//FILE* mywav11 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[12];
FOLDER = folder.c_str();
//FILE* mywav12 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[13];
FOLDER = folder.c_str();
//FILE* mywav13 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[14];
FOLDER = folder.c_str();
//FILE* mywav14 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[15];
FOLDER = folder.c_str();
//FILE* mywav15 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[16];
FOLDER = folder.c_str();
//FILE* mywav16 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[17];
FOLDER = folder.c_str();
//FILE* mywav17 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
folder = RootFolder + filename[18];
FOLDER = folder.c_str();
//FILE* mywav18 = fopen(FOLDER,"rb");
- Sound[aaa] = fopen(FOLDER,"rb");
+ Sound[aaa].FileInfo.WavFile = fopen(FOLDER,"rb");
printf("we opened This file %d\n\r",aaa);
aaa = aaa+1;
-
+ */
printf("DO WE GET PAST THE ALLOCATION POINT\n\r");