aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-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;
}