aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/adpcm.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp
index 37b14140b7..5cf1171fcb 100644
--- a/sound/adpcm.cpp
+++ b/sound/adpcm.cpp
@@ -302,11 +302,13 @@ int ADPCMInputStream::readBufferMS(int channels, int16 *buffer, const int numSam
for (i = 0; i < channels; i++)
_status.ch[i].sample1 = _stream->readSint16LE();
- for (i = 0; i < channels; i++)
- buffer[samples++] = _status.ch[i].sample2 = _stream->readSint16LE();
+ for (i = 0; i < channels; i++) {
+ _status.ch[i].sample2 = _stream->readSint16LE();
+ buffer[samples++] = TO_LE_16(_status.ch[i].sample2);
+ }
for (i = 0; i < channels; i++)
- buffer[samples++] = _status.ch[i].sample1;
+ buffer[samples++] = TO_LE_16(_status.ch[i].sample1);
_blockPos = channels * 7;
}