Library for VS1053 chip with non blocking call to check dreq and cancel playback function
Dependents: VS1053Player MP3_test MP3_final_S4P_ANDRIAMARO_RAKOTO_1
Fork of VS1053lib by
Diff: VLSIcodec.cpp
- Revision:
- 3:59c27531f18e
- Parent:
- 2:59076bd8a066
- Child:
- 4:ce980c240ae1
diff -r 59076bd8a066 -r 59c27531f18e VLSIcodec.cpp --- a/VLSIcodec.cpp Wed May 29 13:14:26 2013 +0000 +++ b/VLSIcodec.cpp Tue Jun 11 16:24:39 2013 +0000 @@ -486,7 +486,10 @@ *playtime++=('0'+seconds%10); } - +void VS1053Codec::resetplaytime() { + writereg(VLSI_DECODE_TIME, 0); + writereg(VLSI_DECODE_TIME, 0); +} /**************************************************************************** Function: void setvolume(unsigned char vRight, unsigned char vLeft)