biologist79 / ESPuino

RFID-controlled musicplayer powered by ESP32
https://forum.espuino.de
GNU General Public License v3.0
286 stars 121 forks source link

Bug: Seek / jump backwards on mp3 not working #180

Closed Joe91 closed 1 year ago

Joe91 commented 1 year ago

when using the command CMD_SEEK_BACKWARDS at least for the files I tested with it does not go backwards at all.

The positions get calculated correctly and the seek-command gets the right position, but it just doesn't appy. Forward works as intended.

Here some logs, including lots of debug stuff i wrote there: [ 219258 ] Kommando: Pause test debug pos: 2446756, offset: -237480 pos: 2209276, offset: -237480 new pos: 2209276, filesize: 2806149, audiostart: 45 [ 221082 ] 30 Sekunden zurueck gesprungen pos to set: 2209461 [ 221705 ] info : stream ready test debug pos: 2509828, offset: -237480 pos: 2272348, offset: -237480 new pos: 2272348, filesize: 2806149, audiostart: 45 [ 223392 ] 30 Sekunden zurueck gesprungen pos to set: 2272451 [ 224029 ] info : stream ready

You can see, that I pressed two times and the positon should have been smaller on the 2nd call. Followed the signal to the line "audiofile.seek(m_resumeFilePos);" in Audio.cpp without any wrong behaviour...

Only tested with mp3 files so far.

biologist79 commented 1 year ago

This is an issue of the underlying audiolib (and was fixed recently as for as I know).