[Scummvm-cvs-logs] CVS: scummvm/base gameDetector.cpp,1.73,1.74

Pawel Kolodziejski aquadran at users.sourceforge.net
Mon Apr 5 11:38:05 CEST 2004


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16526/base

Modified Files:
	gameDetector.cpp 
Log Message:
added voice group volume to scumm engine for imuse digital and implemeted volume groups control

Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- gameDetector.cpp	31 Mar 2004 18:00:45 -0000	1.73
+++ gameDetector.cpp	5 Apr 2004 18:24:34 -0000	1.74
@@ -63,6 +63,7 @@
 	"  -m, --music-volume=NUM   Set the music volume, 0-255 (default: 192)\n"
 	"  -o, --master-volume=NUM  Set the master volume, 0-255 (default: 192)\n"
 	"  -s, --sfx-volume=NUM     Set the sfx volume, 0-255 (default: 192)\n"
+	"  -r, --voice-volume=NUM   Set the voice volume, 0-255 (default: 192)\n"
 	"  -n, --subtitles          Enable subtitles (use with games that have voice)\n"
 	"  -b, --boot-param=NUM     Pass number to the boot script (boot param)\n"
 	"  -d, --debuglevel=NUM     Set debug verbosity level\n"
@@ -107,6 +108,7 @@
 	ConfMan.registerDefault("master_volume", 192);
 	ConfMan.registerDefault("music_volume", 192);
 	ConfMan.registerDefault("sfx_volume", 192);
+	ConfMan.registerDefault("voice_volume", 192);
 
 	ConfMan.registerDefault("multi_midi", false);
 	ConfMan.registerDefault("native_mt32", false);
@@ -367,6 +369,10 @@
 				ConfMan.set("sfx_volume", (int)strtol(option, 0, 10), kTransientDomain);
 			END_OPTION
 
+			DO_OPTION('r', "voice-volume")
+				ConfMan.set("voice_volume", (int)strtol(option, 0, 10), kTransientDomain);
+			END_OPTION
+
 			DO_OPTION_CMD('t', "list-targets")
 				listTargets();
 				exit(0);





More information about the Scummvm-git-logs mailing list