aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-08-27 00:08:43 +0000
committerTravis Howell2004-08-27 00:08:43 +0000
commitc89bfad61dc7c1c260540e173df198d1fe9f8dc4 (patch)
treef4ed7f91dc9dd6a51a84fbdf867b83bb8e7e199c /scumm/sound.cpp
parenteb7671f0a76c98766c1629ce4fb8bc418dba28f8 (diff)
downloadscummvm-rg350-c89bfad61dc7c1c260540e173df198d1fe9f8dc4.tar.gz
scummvm-rg350-c89bfad61dc7c1c260540e173df198d1fe9f8dc4.tar.bz2
scummvm-rg350-c89bfad61dc7c1c260540e173df198d1fe9f8dc4.zip
Correct music skip value for HE 7.2
Play TALK sounds svn-id: r14792
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
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);