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

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Jul 20 12:51:17 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv26120

Modified Files:
	saud_channel.cpp 
Log Message:
fixed regression caused by me

Index: saud_channel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/saud_channel.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- saud_channel.cpp	19 Jul 2003 14:26:25 -0000	1.16
+++ saud_channel.cpp	20 Jul 2003 19:50:32 -0000	1.17
@@ -197,9 +197,9 @@
 	if (volume_right > 128)
 		volume_right = 128;
 	for (int i = 0; i < 256; i++) {
-		int16 value = volume_left * i;
+		int16 value = volume_left * (int8)i;
 		_voltable[0][i] = TO_BE_16(value);
-		value = volume_right * i;
+		value = volume_right * (int8)i;
 		_voltable[1][i] = TO_BE_16(value);
 	}
 }





More information about the Scummvm-git-logs mailing list