[Scummvm-cvs-logs] scummvm master -> 1f3ccd4eed78c94da4856044d5351c1fccc53607

DrMcCoy drmccoy at drmccoy.de
Tue Jul 19 03:11:54 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1f3ccd4eed AUDIO: Fix stereo MS IMA ADPCM decoding


Commit: 1f3ccd4eed78c94da4856044d5351c1fccc53607
    https://github.com/scummvm/scummvm/commit/1f3ccd4eed78c94da4856044d5351c1fccc53607
Author: Sven Hesse (drmccoy at users.sourceforge.net)
Date: 2011-07-18T18:10:10-07:00

Commit Message:
AUDIO: Fix stereo MS IMA ADPCM decoding

Changed paths:
    audio/decoders/adpcm.cpp



diff --git a/audio/decoders/adpcm.cpp b/audio/decoders/adpcm.cpp
index f75196c..116f2f7 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]--;
 			}
 






More information about the Scummvm-git-logs mailing list