![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Lab4
Dependencies: USBHost mbed wave_player_appbd
Fork of AppBoard_Waveplayer by
Diff: main.cpp
- Revision:
- 12:67b9ed2c6e4f
- Parent:
- 11:84161ded6baf
diff -r 84161ded6baf -r 67b9ed2c6e4f main.cpp --- a/main.cpp Tue Mar 03 19:49:09 2015 +0000 +++ b/main.cpp Tue Mar 03 19:51:15 2015 +0000 @@ -18,7 +18,7 @@ void playwav(void const *args) { - File *wave_file; + FILE *wave_file; wave_file=fopen((const char *)args,"r"); waver.play(wave_file); fclose(wave_file); @@ -35,6 +35,7 @@ Thread::wait(500); } //open wav file and play it + waver.stop = false; Thread thread(playwav,(void *)"/usb/wav3.wav"); //end of program Thread::wait(10);