old demo that i want to try in mbed studio
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Revision 71:1364f7d7bff3, committed 2019-09-30
- Comitter:
- roryhand
- Date:
- Mon Sep 30 20:00:13 2019 +0000
- Branch:
- LargeFile_Tests
- Parent:
- 70:2b144da2c3b8
- Child:
- 72:599068243a0f
- Commit message:
- WIP - more changes
Changed in this revision
| NotchingDemo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/NotchingDemo.cpp Mon Sep 30 19:55:23 2019 +0000
+++ b/NotchingDemo.cpp Mon Sep 30 20:00:13 2019 +0000
@@ -604,22 +604,25 @@
fseek(wavfile1,Positions.notch_position_indicators[NotchingSet.Notch],SEEK_SET);
fread(slice_buf1, Sound1.FileInfo.FileFormat.block_align,1,wavfile1);
-
+ data_sptr1=(short *)slice_buf1;
+
fseek(wavfile1,Positions.notch_position_indicators[NotchingSet.Notch - 1],SEEK_SET);
fread(slice_buf2, Sound1.FileInfo.FileFormat.block_align,1,wavfile1);
-
+ data_sptr2=(short *)slice_buf2;
if(NotchingSet.NotchDirection)
{
fseek(wavfile1,Positions.notch_position_indicators[NotchingSet.NotchTransUp],SEEK_SET);
fread(slice_buf3, Sound1.FileInfo.FileFormat.block_align,1,wavfile1);
+ data_sptr3=(short *)slice_buf3;
} else {
fseek(wavfile1,Positions.notch_position_indicators[NotchingSet.NotchTransDown],SEEK_SET);
fread(slice_buf3, Sound1.FileInfo.FileFormat.block_align,1,wavfile1);
+ data_sptr3=(short *)slice_buf3;
}