old demo that i want to try in mbed studio
Dependencies: mbed SDFileSystem_Copy_of_mbed_version I2S
Revision 80:9c70dc3fc16b, committed 2019-10-01
- Comitter:
- roryhand
- Date:
- Tue Oct 01 20:47:13 2019 +0000
- Branch:
- LargeFile_Tests
- Parent:
- 79:00cc7799407f
- Child:
- 81:ec3a68c93bee
- Commit message:
- WIP - minor changes. think my issues are all to do with pointers. can i cast to type without using pointers, so as i can advance wherever the heck i want to within a file?
Changed in this revision
| NotchingDemo.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;