From cbf5a60bab5770e7b199014f509720a248d12d5a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 29 Aug 2004 11:27:16 +0000 Subject: Add a few akos codes Give unknown akos codes better names Rename actor variable Remove hack (Use multi-version flag instead) Another sound correction for HE games. svn-id: r14827 --- scumm/sound.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'scumm/sound.cpp') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index f71866019f..5284db1084 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -180,7 +180,7 @@ void Sound::playSound(int soundID, int offset) { musicFile.seek(+40, SEEK_CUR); if (musicFile.readUint32LE() == MKID('SGEN')) { - // TODO Work out skpi calcution + // TODO Work out skip calcution //skip = (soundID - 8001) * 21; musicFile.seek(+skip, SEEK_CUR); @@ -191,8 +191,8 @@ void Sound::playSound(int soundID, int offset) { // Rewind musicFile.seek(-44, SEEK_CUR); - // Skip header junk - musicFile.seek(+20, SEEK_CUR); + // Skip SGHD header (16) + musicFile.seek(+16, SEEK_CUR); // Skip to correct music header if (soundID >= 8000) @@ -201,8 +201,6 @@ void Sound::playSound(int soundID, int offset) { skip = (soundID - 4001) * 25; musicFile.seek(+skip, SEEK_CUR); - // Skip to offsets - musicFile.seek(+21, SEEK_CUR); } -- cgit v1.2.3