[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
- Previous message: [Scummvm-cvs-logs] CVS: tools .cvsignore,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.24,1.25 dialog.h,1.14,1.15 widget.cpp,1.20,1.21 widget.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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;
- Previous message: [Scummvm-cvs-logs] CVS: tools .cvsignore,1.1,1.2
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui dialog.cpp,1.24,1.25 dialog.h,1.14,1.15 widget.cpp,1.20,1.21 widget.h,1.18,1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list