[Scummvm-cvs-logs] CVS: scummvm/scumm/smush saud_channel.cpp,1.22,1.23

Max Horn fingolfin at users.sourceforge.net
Fri Jan 30 09:32:21 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27928

Modified Files:
	saud_channel.cpp 
Log Message:
Fix for bug #887167 (FT: Sound/Music/speech (almost) mute)

Index: saud_channel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/saud_channel.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- saud_channel.cpp	9 Jan 2004 23:33:46 -0000	1.22
+++ saud_channel.cpp	30 Jan 2004 17:30:06 -0000	1.23
@@ -248,8 +248,8 @@
 
 void SaudChannel::getSoundData(int16 *snd, int32 size) {
 	for (int32 i = 0; i < size; i++) {
-		snd[2 * i] = _sbuffer[i] ^ 0x80;
-		snd[2 * i + 1] = _sbuffer[i] ^ 0x80;
+		snd[2 * i] = TO_LE_16(_sbuffer[i] ^ 0x80);
+		snd[2 * i + 1] = TO_LE_16(_sbuffer[i] ^ 0x80);
 	}
 	if (!_keepSize)
 		_dataSize -= size;





More information about the Scummvm-git-logs mailing list