aboutsummaryrefslogtreecommitdiff
path: root/audio/decoders/adpcm.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-07-19 03:09:47 +0200
committerSven Hesse2011-07-19 03:10:10 +0200
commit1f3ccd4eed78c94da4856044d5351c1fccc53607 (patch)
tree9f92286f0a12ad3db672a1c2401cb8923899214b /audio/decoders/adpcm.cpp
parent765813f750affd7b8883700b489aff0353fc8693 (diff)
downloadscummvm-rg350-1f3ccd4eed78c94da4856044d5351c1fccc53607.tar.gz
scummvm-rg350-1f3ccd4eed78c94da4856044d5351c1fccc53607.tar.bz2
scummvm-rg350-1f3ccd4eed78c94da4856044d5351c1fccc53607.zip
AUDIO: Fix stereo MS IMA ADPCM decoding
Diffstat (limited to 'audio/decoders/adpcm.cpp')
-rw-r--r--audio/decoders/adpcm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decoders/adpcm.cpp b/audio/decoders/adpcm.cpp
index f75196c882..116f2f776a 100644
--- a/audio/decoders/adpcm.cpp
+++ b/audio/decoders/adpcm.cpp
@@ -234,7 +234,7 @@ int MSIma_ADPCMStream::readBuffer(int16 *buffer, const int numSamples) {
while (samples < numSamples && _samplesLeft[0] != 0) {
for (int i = 0; i < _channels; i++) {
- buffer[samples] = _buffer[i][8 - _samplesLeft[i]];
+ buffer[samples + i] = _buffer[i][8 - _samplesLeft[i]];
_samplesLeft[i]--;
}