[Scummvm-cvs-logs] SF.net SVN: scummvm:[39465] scummvm/trunk/sound/adpcm.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Tue Mar 17 03:35:44 CET 2009
Revision: 39465
http://scummvm.svn.sourceforge.net/scummvm/?rev=39465&view=rev
Author: mthreepwood
Date: 2009-03-17 02:35:43 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
Do not use TO_LE_16 for the IMA ADPCM decoder as it breaks sound on BE systems.
Modified Paths:
--------------
scummvm/trunk/sound/adpcm.cpp
Modified: scummvm/trunk/sound/adpcm.cpp
===================================================================
--- scummvm/trunk/sound/adpcm.cpp 2009-03-17 00:00:29 UTC (rev 39464)
+++ scummvm/trunk/sound/adpcm.cpp 2009-03-17 02:35:43 UTC (rev 39465)
@@ -218,8 +218,8 @@
for (samples = 0; samples < numSamples && !_stream->eos() && _stream->pos() < _endpos; samples += 2) {
data = _stream->readByte();
- buffer[samples] = TO_LE_16(decodeIMA((data >> 4) & 0x0f));
- buffer[samples + 1] = TO_LE_16(decodeIMA(data & 0x0f, _channels == 2 ? 1 : 0));
+ buffer[samples] = decodeIMA((data >> 4) & 0x0f);
+ buffer[samples + 1] = decodeIMA(data & 0x0f, _channels == 2 ? 1 : 0);
}
return samples;
}
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