Closed kungfupizza closed 1 month ago
The file pointer is not synchronized with the audio currently being played. audio.stopSong() returns a calculated value that you can use in connecttoFS().
Thank you! It has gotten better with stopSong
BUT still does not start from the point it left rather starts from just a few seconds from the start.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Here is what I am trying as flow, Start playing a song with,
audio.connecttoFS(SD, "xyz.mp3");
Stop after some time and get the seek,
uint32_t seek = audio.getFilePos();
Restart the song from a seek,
audio.connecttoFS(SD, "xyz.mp3", seek);
here seek value is14756
The song starts from start instead of starting from that seek value. Some useful prints from
Audio::processLocalFile
processLocalFile(): m_audioDataStart 138 processLocalFile(): m_resumeFilePos 14756 processLocalFile(): Corrected m_resumeFilePos 22706
What am I doing wrong?