From 19838db21d09261314740f611f1cf5fb8ce2cdec Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 24 Apr 2006 17:10:15 +0000 Subject: 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 --- engines/simon/animation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/simon') 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); } } -- cgit v1.2.3