[Scummvm-cvs-logs] SF.net SVN: scummvm:[43287] scummvm/trunk/sound/adpcm.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Tue Aug 11 21:11:26 CEST 2009
Revision: 43287
http://scummvm.svn.sourceforge.net/scummvm/?rev=43287&view=rev
Author: dhewg
Date: 2009-08-11 19:11:26 +0000 (Tue, 11 Aug 2009)
Log Message:
-----------
Fixed an endian bug in the ADPCM decoder (#2211901).
Modified Paths:
--------------
scummvm/trunk/sound/adpcm.cpp
Modified: scummvm/trunk/sound/adpcm.cpp
===================================================================
--- scummvm/trunk/sound/adpcm.cpp 2009-08-11 18:23:12 UTC (rev 43286)
+++ scummvm/trunk/sound/adpcm.cpp 2009-08-11 19:11:26 UTC (rev 43287)
@@ -302,11 +302,13 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list