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:
- 80:9c70dc3fc16b
- Parent:
- 79:00cc7799407f
- Child:
- 81:ec3a68c93bee
--- a/NotchingDemo.cpp Tue Oct 01 20:40:43 2019 +0000
+++ b/NotchingDemo.cpp Tue Oct 01 20:47:13 2019 +0000
@@ -681,12 +681,12 @@
//increment up the position indicator!
//NOTCH 2
- /*
+
fseek(wavfile1,Positions.notch_position_indicators[NotchingSet.Notch],Positions.notch_position_indicators[NotchingSet.Notch]);
fread(Sound3.FileInfo.slice_buf, Sound3.FileInfo.FileFormat.block_align,1,wavfile1);
data_sptr3=(short *)Sound3.FileInfo.slice_buf;
Positions.notch_position_indicators[NotchingSet.Notch] = Positions.notch_position_indicators[NotchingSet.Notch] + 2;
- */
+
//increment up the position indicator!
@@ -697,7 +697,7 @@
//N1 N2 Transition
fseek(wavfile2,Positions.notch_transitions_position_indicators[NotchingSet.NotchTransUp],Positions.notch_transitions_position_indicators[NotchingSet.NotchTransUp]);
- fread(Sound1.FileInfo.slice_buf, Sound1.FileInfo.FileFormat.block_align,1,wavfile2);
+ fread(Sound2.FileInfo.slice_buf, Sound2.FileInfo.FileFormat.block_align,1,wavfile2);
data_sptr2=(short *)Sound2.FileInfo.slice_buf;
Positions.notch_transitions_position_indicators[NotchingSet.NotchTransUp] = Positions.notch_transitions_position_indicators[NotchingSet.NotchTransUp] + 2;