modified for changes
Dependents: AppBoard_Waveplayer
Fork of wave_player_appbd by
Diff: wave_player.cpp
- Revision:
- 3:9681894c42cb
- Parent:
- 2:b1cea7afcfd2
- Child:
- 5:bf4a8feb30b9
--- a/wave_player.cpp Fri Nov 01 15:24:51 2013 +0000 +++ b/wave_player.cpp Tue Mar 03 19:48:50 2015 +0000 @@ -72,6 +72,11 @@ fread(&chunk_id,4,1,wavefile); fread(&chunk_size,4,1,wavefile); while (!feof(wavefile)) { + if(stop){ + if(verbosity) + printf("Music Player stopped."); + break; + } if (verbosity) printf("Read chunk ID 0x%x, size 0x%x\n",chunk_id,chunk_size); switch (chunk_id) {