diff options
author | Max Horn | 2006-04-29 23:09:40 +0000 |
---|---|---|
committer | Max Horn | 2006-04-29 23:09:40 +0000 |
commit | eaca27a33bb5bc68fae8a58b32f2cec94aabb5fb (patch) | |
tree | b944528d021c6a02cdbf486c30eddfd02e1337e3 /engines/scumm/scumm.cpp | |
parent | 27307acd7c6f9f9083bdcad38ba54f18d4f080b7 (diff) | |
download | scummvm-rg350-eaca27a33bb5bc68fae8a58b32f2cec94aabb5fb.tar.gz scummvm-rg350-eaca27a33bb5bc68fae8a58b32f2cec94aabb5fb.tar.bz2 scummvm-rg350-eaca27a33bb5bc68fae8a58b32f2cec94aabb5fb.zip |
Renamed updateVolumes to updateSoundSettings -- now it also handles subtitles/speech_mute settings. Also changed the ConfigDialog accordingly
svn-id: r22233
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
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() { |