[Scummvm-cvs-logs] SF.net SVN: scummvm:[43288] scummvm/branches/branch-1-0-0/sound/adpcm.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Tue Aug 11 21:12:07 CEST 2009
Revision: 43288
http://scummvm.svn.sourceforge.net/scummvm/?rev=43288&view=rev
Author: dhewg
Date: 2009-08-11 19:12:06 +0000 (Tue, 11 Aug 2009)
Log Message:
-----------
Backport of r43287.
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/sound/adpcm.cpp
Modified: scummvm/branches/branch-1-0-0/sound/adpcm.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/sound/adpcm.cpp 2009-08-11 19:11:26 UTC (rev 43287)
+++ scummvm/branches/branch-1-0-0/sound/adpcm.cpp 2009-08-11 19:12:06 UTC (rev 43288)
@@ -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