aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2009-03-17 02:35:43 +0000
committerMatthew Hoops2009-03-17 02:35:43 +0000
commit1817dd9bc5d59b61e8ee769599f67af751e6a728 (patch)
tree6c7c6bc7f1a57eac2c15643c0d123bca9f283ab2
parent331399db9bd2539ce3698bf89630b8954c64c123 (diff)
downloadscummvm-rg350-1817dd9bc5d59b61e8ee769599f67af751e6a728.tar.gz
scummvm-rg350-1817dd9bc5d59b61e8ee769599f67af751e6a728.tar.bz2
scummvm-rg350-1817dd9bc5d59b61e8ee769599f67af751e6a728.zip
Do not use TO_LE_16 for the IMA ADPCM decoder as it breaks sound on BE systems.
svn-id: r39465
-rw-r--r--sound/adpcm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp
index 4890c0ab94..a5f2f7c4eb 100644
--- a/sound/adpcm.cpp
+++ b/sound/adpcm.cpp
@@ -218,8 +218,8 @@ int ADPCMInputStream::readBufferIMA(int16 *buffer, const int numSamples) {
for (samples = 0; samples < numSamples && !_stream->eos() && _stream->pos() < _endpos; samples += 2) {
data = _stream->readByte();
- buffer[samples] = TO_LE_16(decodeIMA((data >> 4) & 0x0f));
- buffer[samples + 1] = TO_LE_16(decodeIMA(data & 0x0f, _channels == 2 ? 1 : 0));
+ buffer[samples] = decodeIMA((data >> 4) & 0x0f);
+ buffer[samples + 1] = decodeIMA(data & 0x0f, _channels == 2 ? 1 : 0);
}
return samples;
}