From eaca27a33bb5bc68fae8a58b32f2cec94aabb5fb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 29 Apr 2006 23:09:40 +0000 Subject: Renamed updateVolumes to updateSoundSettings -- now it also handles subtitles/speech_mute settings. Also changed the ConfigDialog accordingly svn-id: r22233 --- engines/scumm/scumm.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'engines/scumm/scumm.cpp') diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index b98d47e391..ee7ea1af9c 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1471,10 +1471,10 @@ void ScummEngine::setupMusic(int midi) { } } - updateVolumes(); + updateSoundSettings(); } -void ScummEngine::updateVolumes() { +void ScummEngine::updateSoundSettings() { // Sync the engine with the config manager int soundVolumeMusic = ConfMan.getInt("music_volume"); @@ -1488,6 +1488,15 @@ void ScummEngine::updateVolumes() { _mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, soundVolumeSfx); _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, soundVolumeMusic); _mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, soundVolumeSpeech); + + + if (ConfMan.getBool("speech_mute")) + _voiceMode = 2; + else + _voiceMode = ConfMan.getBool("subtitles"); + + if (VAR_VOICE_MODE != 0xFF) + VAR(VAR_VOICE_MODE) = _voiceMode; } @@ -2059,7 +2068,7 @@ void ScummEngine::mainMenuDialog() { if (!_mainMenuDialog) _mainMenuDialog = new MainMenuDialog(this); runDialog(*_mainMenuDialog); - updateVolumes(); + updateSoundSettings(); } void ScummEngine::confirmExitDialog() { -- cgit v1.2.3