old demo that i want to try in mbed studio
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Diff: NotchingDemo.cpp
- Branch:
- LargeFile_Tests
- Revision:
- 68:55e26c5e837b
- Parent:
- 67:043fe0b81343
- Child:
- 69:df10ee3ad523
--- a/NotchingDemo.cpp Sun Sep 29 20:53:01 2019 +0000
+++ b/NotchingDemo.cpp Sun Sep 29 20:54:34 2019 +0000
@@ -592,9 +592,9 @@
//Sound1=======================================================================================
- if( slice1 == (Positions.notch8_start_pt) ) {
- slice1 = Positions.notch7_start_pt;
- fseek(wavfile1,Positions.notch7_start_pt,SEEK_SET);
+ if( slice1 == (Positions.notch_start_pts[Notching.Notch + 1]) ) {
+ slice1 = Positions.notch_start_pts[Notching.Notch];
+ fseek(wavfile1,Positions.notch_start_pts[Notching.Notch],SEEK_SET);
}
fread(Sound1.FileInfo.slice_buf,Sound1.FileInfo.FileFormat.block_align,1,wavfile1);