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:
- 84:0a259e261532
- Parent:
- 78:69a0c7a5fbdf
- Child:
- 85:e0c9ba778ae0
--- 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 } //=============================================================================================