aboutsummaryrefslogtreecommitdiff
path: root/engines/simon
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-24 17:10:15 +0000
committerTorbjörn Andersson2006-04-24 17:10:15 +0000
commit19838db21d09261314740f611f1cf5fb8ce2cdec (patch)
tree415ef2cacc76ae687405e2fbc1a1badc764b00e4 /engines/simon
parent78d69667340914d8737d0836cc9ef20dec0296dd (diff)
downloadscummvm-rg350-19838db21d09261314740f611f1cf5fb8ce2cdec.tar.gz
scummvm-rg350-19838db21d09261314740f611f1cf5fb8ce2cdec.tar.bz2
scummvm-rg350-19838db21d09261314740f611f1cf5fb8ce2cdec.zip
If startSound() can't find a WAVE chunk, set the file position to the beginning
of the chunk again. Otherwise, animations without a sound track (such as disk1.dxa) will fail to play. svn-id: r22140
Diffstat (limited to 'engines/simon')
-rw-r--r--engines/simon/animation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp
index b38fcd71a7..f868e1ea3f 100644
--- a/engines/simon/animation.cpp
+++ b/engines/simon/animation.cpp
@@ -180,6 +180,8 @@ void MoviePlayer::startSound() {
_mixer->stopHandle(_bgSound);
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_bgSound, _bgSoundStream);
free(buffer);
+ } else {
+ _fd.seek(-4, SEEK_CUR);
}
}