[Scummvm-devel] how to retrieve the value of "Mute All" from ConfMan?
Max Horn
max at quendi.de
Thu Nov 12 11:24:34 CET 2009
Am 12.11.2009 um 04:30 schrieb Robert Špalek:
> hi guys,
>
> I can easily get almost everything from the configuration managers,
> such as various volumes and muting of the 3 types of sounds,
> subtitle speed, etc., but I haven't been able to figure out how to
> get the state of the checkbox "Mute All", which I see in my
> installation (on Mac OS X) instead of, say, the 3 individual mute
> flags. when I enable it, i.e. mute all sounds, none of the 3
> individual flags get set as one might expect.
>
> even grep'ing the source codes doesn't help. does anybody have an
> idea, please?
Looking at gui/options.cpp, I'd say you need
ConfMan.getBool("mute") ?
And then there is Engine::syncSoundSettings() in engines/engine.cpp
which sets all volumes to 0 (or back to their "real" values) based on
the current "mute" setting. You may want to use that.
Bye,
Max
More information about the Scummvm-devel
mailing list