aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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