aboutsummaryrefslogtreecommitdiff
path: root/sound.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-04 11:18:25 +0000
committerMax Horn2002-07-04 11:18:25 +0000
commit46a41881355aa5a0ddc5a1d94a278567bc2fd647 (patch)
tree6d131d84b4eeede2b085ad213af752a395dfab0b /sound.cpp
parenta238f75dd0250a2981079c49b465930177784388 (diff)
downloadscummvm-rg350-46a41881355aa5a0ddc5a1d94a278567bc2fd647.tar.gz
scummvm-rg350-46a41881355aa5a0ddc5a1d94a278567bc2fd647.tar.bz2
scummvm-rg350-46a41881355aa5a0ddc5a1d94a278567bc2fd647.zip
endian fix for Putt-Putt sound playback
svn-id: r4457
Diffstat (limited to 'sound.cpp')
-rw-r--r--sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound.cpp b/sound.cpp
index 251b61a02e..541625ed3a 100644
--- a/sound.cpp
+++ b/sound.cpp
@@ -207,11 +207,11 @@ void Scumm::playSound(int sound)
else if (ptr != NULL && READ_UINT32_UNALIGNED(ptr) == MKID('DIGI')) {
// TODO - discover what data the first chunk, HSHD, contains
// it might be useful here.
- ptr += 8 + READ_UINT32_UNALIGNED(ptr+12);
+ ptr += 8 + READ_BE_UINT32_UNALIGNED(ptr+12);
if (READ_UINT32_UNALIGNED(ptr) != MKID('SDAT'))
return; // abort
- int size = READ_UINT32_UNALIGNED(ptr+4);
+ int size = READ_BE_UINT32_UNALIGNED(ptr+4);
int rate = 8000; // FIXME - what value here ?!? this is just a guess for now
// Allocate a sound buffer, copy the data into it, and play