[Scummvm-cvs-logs] CVS: scummvm/sound imuse.cpp,1.39,1.40

Max Horn fingolfin at users.sourceforge.net
Thu Jul 25 17:42:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv21995/sound

Modified Files:
	imuse.cpp 
Log Message:
added painelf's (still unfinished) sound dialog in NewGUI. Beware, this is work in progress, don't report problems with it just yet, we already know they are there :-)

Index: imuse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/imuse.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- imuse.cpp	23 Jul 2002 10:29:11 -0000	1.39
+++ imuse.cpp	26 Jul 2002 00:41:07 -0000	1.40
@@ -1255,6 +1255,9 @@
 
 int IMuseInternal::set_music_volume(uint vol)
 {
+	// recalibrate from 0-255 range
+	vol = vol * 100 / 255;
+
 	if (vol > 100)
 		vol = 100;
 	else if (vol < 1)
@@ -1267,6 +1270,10 @@
 int IMuseInternal::set_master_volume(uint vol)
 {
 	int i;
+
+	// recalibrate from 0-255 range
+	vol = vol * 127 / 255;
+
 	if (vol > 127)
 		return -1;
 





More information about the Scummvm-git-logs mailing list