diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/scumm.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 46708b3c4f..b0b86516e7 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1808,6 +1808,15 @@ void ScummEngine::syncSoundSettings() { int soundVolumeSfx = ConfMan.getInt("sfx_volume"); int soundVolumeSpeech = ConfMan.getInt("speech_volume"); + bool mute = false; + + if (ConfMan.hasKey("mute")) { + mute = ConfMan.getBool("mute"); + + if (mute) + soundVolumeMusic = soundVolumeSfx = soundVolumeSpeech = 0; + } + if (_musicEngine) { _musicEngine->setMusicVolume(soundVolumeMusic); } |