[Scummvm-cvs-logs] CVS: residual smush.cpp,1.14,1.15
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Feb 1 04:34:01 CET 2004
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21734
Modified Files:
smush.cpp
Log Message:
revert, mixer little endian feature dosn't work
Index: smush.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/smush.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- smush.cpp 1 Feb 2004 11:54:27 -0000 1.14
+++ smush.cpp 1 Feb 2004 12:02:41 -0000 1.15
@@ -127,7 +127,11 @@
int16 *dst = new int16[size * _channels];
decompressVima((char *)src, dst, size * _channels * 2);
- int flags = SoundMixer::FLAG_16BITS | SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_LITTLE_ENDIAN;
+ for (uint32 j = 0; j < size * _channels; j++)
+ dst[j] = SWAP_BYTES_16(dst[j]);
+
+ int flags = SoundMixer::FLAG_16BITS | SoundMixer::FLAG_AUTOFREE;
+// int flags = SoundMixer::FLAG_16BITS | SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_LITTLE_ENDIAN;
if (_channels == 2)
flags |= SoundMixer::FLAG_STEREO;
More information about the Scummvm-git-logs
mailing list