From 37d2f30999398acc4bb3edff5b6cdac29a2af7c3 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 6 May 2006 08:33:52 +0000 Subject: Ooops, skip WAV data, before changing size var svn-id: r22367 --- engines/simon/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/simon') diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp index 26e36ca569..385c20473a 100644 --- a/engines/simon/animation.cpp +++ b/engines/simon/animation.cpp @@ -207,6 +207,8 @@ void MoviePlayer::startSound() { if (_sequenceNum) { Common::File in; + _fd.seek(size, SEEK_CUR); + in.open((const char *)"audio.wav"); if (in.isOpen() == false) { error("Can't read offset file 'audio.wav'"); @@ -220,8 +222,6 @@ void MoviePlayer::startSound() { in.seek(offset, SEEK_SET); in.read(buffer, size); in.close(); - - _fd.seek(size, SEEK_CUR); } else { buffer = (byte *)malloc(size); _fd.read(buffer, size); -- cgit v1.2.3