From 87ef1fe0a2be0562202573d75f83e530cc10bc0d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 21 Feb 2007 12:34:14 +0000 Subject: Skip music track 35 in CD releases of Simon 1, since it was replace by sound effect and the script was not updated. svn-id: r25762 --- engines/agos/res_snd.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'engines/agos') diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp index dc6e94034f..a236047333 100644 --- a/engines/agos/res_snd.cpp +++ b/engines/agos/res_snd.cpp @@ -178,6 +178,7 @@ void AGOSEngine::loadMusic(uint music) { _nextMusicToPlay = -1; } else if (getGameType() == GType_SIMON1) { midi.stop(); + midi.setLoop(true); // Must do this BEFORE loading music. (GMF may have its own override.) // Support for compressed music from the ScummVM Music Enhancement Project AudioCD.stop(); @@ -190,12 +191,10 @@ void AGOSEngine::loadMusic(uint music) { } else if (getPlatform() == Common::kPlatformAmiga) { loadModule(music); } else if (getFeatures() & GF_TALKIE) { - // FIXME: The very last music resource, a cymbal crash for when the - // two demons crash into each other, should NOT be looped like the - // other music tracks. In simon1dos/talkie the GMF resource includes - // a loop override that acomplishes this, but there seems to be nothing - // for this in the SMF resources. - midi.setLoop(music != 35); // Must do this BEFORE loading music. (GMF may have its own override.) + // We skip this music resource, as it was replaced by + // a sound effect, and the script was never updated. + if (music == 35) + return; _gameFile->seek(_gameOffsetsPtr[_musicIndexBase + music], SEEK_SET); _gameFile->read(buf, 4); @@ -216,7 +215,6 @@ void AGOSEngine::loadMusic(uint music) { if (f.isOpen() == false) error("loadMusic: Can't load music from '%s'", filename); - midi.setLoop(true); // Must do this BEFORE loading music. (GMF may have its own override.) if (getFeatures() & GF_DEMO) midi.loadS1D(&f); else -- cgit v1.2.3