diff options
author | Andrew Kurushin | 2005-12-07 20:57:04 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-12-07 20:57:04 +0000 |
commit | 10ca82b390c62dfe69a6dbac7babdc5ae9257cf2 (patch) | |
tree | f2f4e504d6b9e119d733e3daabfaeef3de2ad798 /saga | |
parent | fd3797a9d6e2c856c3aef7499f99702473d240a9 (diff) | |
download | scummvm-rg350-10ca82b390c62dfe69a6dbac7babdc5ae9257cf2.tar.gz scummvm-rg350-10ca82b390c62dfe69a6dbac7babdc5ae9257cf2.tar.bz2 scummvm-rg350-10ca82b390c62dfe69a6dbac7babdc5ae9257cf2.zip |
fix bug#1374198 "White Noise instead of Music Playback"
svn-id: r19754
Diffstat (limited to 'saga')
-rw-r--r-- | saga/music.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/saga/music.cpp b/saga/music.cpp index 1259c188df..a12b60d08a 100644 --- a/saga/music.cpp +++ b/saga/music.cpp @@ -148,10 +148,14 @@ void RAWInputStream::refill() { if (len & 1) len--; +#ifdef SCUMM_BIG_ENDIAN + if (!_context->isBigEndian) { +#else if (_context->isBigEndian) { +#endif uint16 *ptr16 = (uint16 *)ptr; for (uint32 i = 0; i < (len / 2); i++) - ptr16[i] = TO_BE_16(ptr16[i]); + ptr16[i] = SWAP_BYTES_16(ptr16[i]); } lengthLeft -= len; |