aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-09-11 05:28:54 +0000
committerPaul Gilbert2010-09-11 05:28:54 +0000
commit70fed746df6ab0ff7fe2c80725fb0c94b8ea821a (patch)
tree162db95f88c7f297cbf8cf42391cfbd761ec27f5 /engines/tinsel/sound.cpp
parent77c43f4d0dad81d31a502320e0d423e0f50cb17a (diff)
downloadscummvm-rg350-70fed746df6ab0ff7fe2c80725fb0c94b8ea821a.tar.gz
scummvm-rg350-70fed746df6ab0ff7fe2c80725fb0c94b8ea821a.tar.bz2
scummvm-rg350-70fed746df6ab0ff7fe2c80725fb0c94b8ea821a.zip
TINSEL: Fix for #3032780 - Mute not respected in DW1
svn-id: r52674
Diffstat (limited to 'engines/tinsel/sound.cpp')
-rw-r--r--engines/tinsel/sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/tinsel/sound.cpp b/engines/tinsel/sound.cpp
index d97137d3ef..6e8e736e14 100644
--- a/engines/tinsel/sound.cpp
+++ b/engines/tinsel/sound.cpp
@@ -129,9 +129,13 @@ bool SoundManager::playSample(int id, Audio::Mixer::SoundType type, Audio::Sound
error(FILE_IS_CORRUPT, _vm->getSampleFile(sampleLanguage));
// FIXME: Should set this in a different place ;)
- _vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, _vm->_config->_soundVolume);
+ bool mute = false;
+ if (ConfMan.hasKey("mute"))
+ mute = ConfMan.getBool("mute");
+
+ _vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, mute ? 0 : _vm->_config->_soundVolume);
//_vm->_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, soundVolumeMusic);
- _vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, _vm->_config->_voiceVolume);
+ _vm->_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, mute ? 0 : _vm->_config->_voiceVolume);
Audio::AudioStream *sampleStream = 0;