From c89bfad61dc7c1c260540e173df198d1fe9f8dc4 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 27 Aug 2004 00:08:43 +0000 Subject: Correct music skip value for HE 7.2 Play TALK sounds svn-id: r14792 --- scumm/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/sound.cpp') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 361ffb92a1..a336d1ccd9 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -181,7 +181,7 @@ void Sound::playSound(int soundID, int offset) { musicFile.seek(+40, SEEK_CUR); if (musicFile.readUint32LE() == MKID('SGEN')) { // Skip to correct music header - skip = (soundID - 4001) * 21; + skip = (soundID - 8001) * 21; musicFile.seek(+skip, SEEK_CUR); // Skip to offsets @@ -260,7 +260,7 @@ void Sound::playSound(int soundID, int offset) { _vm->_mixer->playRaw(NULL, sound, size, rate, flags, soundID); } // Support for Putt-Putt sounds - very hackish, too 8-) - else if (READ_UINT32(ptr) == MKID('DIGI')) { + else if (READ_UINT32(ptr) == MKID('DIGI') || READ_UINT32(ptr) == MKID('TALK')) { // TODO - discover what data the first chunk, HSHD, contains // it might be useful here. rate = READ_LE_UINT16(ptr + 22); -- cgit v1.2.3