aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-03-01 13:32:45 +0000
committerJonathan Gray2003-03-01 13:32:45 +0000
commitd31b7439e11d97819150109e2cd5dfdfa3468d29 (patch)
treeab641c62e7185454c4bc215010238635d593bde0 /scumm/sound.cpp
parent419761549ca92884df5c5b5f827f457f7a1aae9f (diff)
downloadscummvm-rg350-d31b7439e11d97819150109e2cd5dfdfa3468d29.tar.gz
scummvm-rg350-d31b7439e11d97819150109e2cd5dfdfa3468d29.tar.bz2
scummvm-rg350-d31b7439e11d97819150109e2cd5dfdfa3468d29.zip
we were reading 8 bytes too much on DIGI sounds
svn-id: r6648
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 2045a9c18f..c89aaecc4f 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -224,7 +224,7 @@ void Sound::playSound(int soundID) {
if (READ_UINT32_UNALIGNED(ptr) != MKID('SDAT'))
return; // abort
- size = READ_BE_UINT32_UNALIGNED(ptr+4);
+ size = READ_BE_UINT32_UNALIGNED(ptr+4) - 8;
// FIXME - what value here ?!? 11025 is just a guess based on strings in w32 bin, prev guess 8000
rate = 11025;