aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res_snd.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-02-21 12:34:14 +0000
committerTravis Howell2007-02-21 12:34:14 +0000
commit87ef1fe0a2be0562202573d75f83e530cc10bc0d (patch)
tree85b08f01f8a6f5bb324d09c09391b8276db068e9 /engines/agos/res_snd.cpp
parent76ac2263f9c6ddfa3811ed32a84561e939fc53ca (diff)
downloadscummvm-rg350-87ef1fe0a2be0562202573d75f83e530cc10bc0d.tar.gz
scummvm-rg350-87ef1fe0a2be0562202573d75f83e530cc10bc0d.tar.bz2
scummvm-rg350-87ef1fe0a2be0562202573d75f83e530cc10bc0d.zip
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
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r--engines/agos/res_snd.cpp12
1 files changed, 5 insertions, 7 deletions
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