aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirben2014-04-13 19:51:33 +1000
committerKirben2014-04-13 19:51:33 +1000
commitac9182181d899d66ba6317e3e51dc781961ba239 (patch)
treeee9609583e5e753e4fc273d8d777118242d5ec89
parent42f4bb6b1ed04499eba0a15275521bdafcdb2cd5 (diff)
downloadscummvm-rg350-ac9182181d899d66ba6317e3e51dc781961ba239.tar.gz
scummvm-rg350-ac9182181d899d66ba6317e3e51dc781961ba239.tar.bz2
scummvm-rg350-ac9182181d899d66ba6317e3e51dc781961ba239.zip
AGOS: Fix music looping when using Roland MT-32 music in Simon the Sorcerer 2.
-rw-r--r--engines/agos/midi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agos/midi.cpp b/engines/agos/midi.cpp
index c26fbe3331..392ee08ea1 100644
--- a/engines/agos/midi.cpp
+++ b/engines/agos/midi.cpp
@@ -235,6 +235,10 @@ void MidiPlayer::startTrack(int track) {
_music.parser = parser; // That plugs the power cord into the wall
} else if (_music.parser) {
if (!_music.parser->setTrack(track)) {
+ // The Roland MT32 music in Simon the Sorcerer 2
+ // is missing the extra tracks in many scenes,
+ // like the introduction sequence.
+ stop();
return;
}
_currentTrack = (byte)track;