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
Diff: NotchingDemo.cpp
- Branch:
- LargeFile_Tests
- Revision:
- 71:1364f7d7bff3
- Parent:
- 70:2b144da2c3b8
- Child:
- 72:599068243a0f
diff -r 2b144da2c3b8 -r 1364f7d7bff3 NotchingDemo.cpp
--- 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;
}