mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
Bugfix to properly save the currently playing midi music when saving a scene
svn-id: r42377
This commit is contained in:
parent
9594beb39f
commit
6bf91ab66f
@ -207,6 +207,10 @@ bool PlayMidiSequence(uint32 dwFileOffset, bool bLoop) {
|
||||
if (track > 0) {
|
||||
StopMidi();
|
||||
|
||||
// StopMidi resets these fields, so set them again
|
||||
currentMidi = dwFileOffset;
|
||||
currentLoop = bLoop;
|
||||
|
||||
// try to play track, but don't fall back to a true CD
|
||||
AudioCD.play(track, bLoop ? -1 : 1, 0, 0, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user