diff options
author | Sven Hesse | 2011-07-19 03:09:47 +0200 |
---|---|---|
committer | Sven Hesse | 2011-07-19 03:10:10 +0200 |
commit | 1f3ccd4eed78c94da4856044d5351c1fccc53607 (patch) | |
tree | 9f92286f0a12ad3db672a1c2401cb8923899214b /audio/decoders | |
parent | 765813f750affd7b8883700b489aff0353fc8693 (diff) | |
download | scummvm-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')
-rw-r--r-- | audio/decoders/adpcm.cpp | 2 |
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]--; } |