[Scummvm-devel] syncSoundSettings / mute all

Willem Jan Palenstijn wjp at usecode.org
Fri Jan 8 21:54:17 CET 2010


Hi,

petos on IRC just reported this:

$ scummvm -p /usr/share/scummvm/draci-historie/ draci
User picked target 'draci' (gameid 'draci')...
  Looking for a plugin supporting this gameid... Draci Historie Engine
  Starting 'Draci Historie'
ConfigManager::getBool(mute,): '' is not a valid bool!


It seems this is caused by the 'mute' option not having a registered default,
but looking into this confused me a bit.

It seems the 'mute' config option is mainly handled by
Engine::syncSoundSettings() (in engine/engine.cpp), but this function doesn't
seem to be called by most engines. Many engines duplicate this function (either
literally or by doing something similar), but ignore the 'mute' key entirely.
Unsurprisingly the 'mute all' button in the options menu doesn't seem to work
in the engines I tried. Did this ever work?

-Willem Jan





More information about the Scummvm-devel mailing list