Closed pedro-w closed 2 years ago
Wow, sorry for the 1-month delay in reviewing this PR. Life happened.
The original PR for this was deleted, but when I re-implemented your work, I've been getting a -1.0
from the Mix_GetMusicPosition()
call for the overworld (waterw.xm) and Orc Camp (land.mod) songs, so my overworld theme music doesn't appear to allow resuming.
This is using SDL2_mixer (with libmodplug plugin) v2.6.1 and libmodplug version 0.8.9.0, which are the latest available for me on Windows via vcpkg. If you're using v2.6.2 or later, and you've been able to get it to resume, then this looks fine to me to merge in.
Re-establishes the behaviour that:
will resume the music playing before
pause_music
was called. This is used in battles. Note that it is intended that the music resumes from where it was paused but SDL2 mixer doesn't implementMix_GetMusicPosition
for all music file types. In these cases it'll start from the beginning.Fixes #143