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:
- 84:0a259e261532
- Parent:
- 78:69a0c7a5fbdf
- Child:
- 85:e0c9ba778ae0
diff -r 69a0c7a5fbdf -r 0a259e261532 NotchingDemo.cpp
--- a/NotchingDemo.cpp Tue Oct 01 20:14:26 2019 +0000
+++ b/NotchingDemo.cpp Wed Oct 02 19:16:26 2019 +0000
@@ -728,7 +728,7 @@
*/
//else
//{
- *Sound1.data_sptr = *data_sptr1*NotchFadeOut.FadeCoeff + *data_sptr2;
+ *Sound1.data_sptr = *data_sptr1;//*NotchFadeOut.FadeCoeff + *data_sptr2;
//*Sound1.data_sptr = *data_sptr1;// + *data_sptr2;
@@ -754,7 +754,9 @@
printf("It took %d useconds to perform fread operation.\n\r",OperationsTimer.read_us());
Positions.notch_position_indicators[1] = Positions.notch_position_indicators[1] + 2;//i.e. 2 bytes, per sample, for 2-byte (16-bit) data
*/
- Sound1.data_sptr=(short *)Sound1.FileInfo.slice_buf; // 16 bit samples
+ data_sptr1=(short *)Sound1.FileInfo.slice_buf;
+ *Sound1.data_sptr = *data_sptr1;
+ //Sound1.data_sptr=(short *)Sound1.FileInfo.slice_buf; // 16 bit samples
}
//=============================================================================================