diff options
author | Max Horn | 2002-07-04 11:18:25 +0000 |
---|---|---|
committer | Max Horn | 2002-07-04 11:18:25 +0000 |
commit | 46a41881355aa5a0ddc5a1d94a278567bc2fd647 (patch) | |
tree | 6d131d84b4eeede2b085ad213af752a395dfab0b /sound.cpp | |
parent | a238f75dd0250a2981079c49b465930177784388 (diff) | |
download | scummvm-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |