aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-04-05 18:24:36 +0000
committerPaweł Kołodziejski2004-04-05 18:24:36 +0000
commitf141ad488b1fd4d96214cb35e0ab4034173efb81 (patch)
tree88bc5d0055ef63fc6afa9180620c3a35c5e661f4 /base
parent781809ee2be3c1ad15e3e9a62296f27241ac9cd0 (diff)
downloadscummvm-rg350-f141ad488b1fd4d96214cb35e0ab4034173efb81.tar.gz
scummvm-rg350-f141ad488b1fd4d96214cb35e0ab4034173efb81.tar.bz2
scummvm-rg350-f141ad488b1fd4d96214cb35e0ab4034173efb81.zip
added voice group volume to scumm engine for imuse digital and implemeted volume groups control
svn-id: r13468
Diffstat (limited to 'base')
-rw-r--r--base/gameDetector.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index d51693f6a0..19f638019d 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -63,6 +63,7 @@ static const char USAGE_STRING[] =
" -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 @@ GameDetector::GameDetector() {
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 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
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);