diff options
author | Travis Howell | 2009-07-17 00:25:27 +0000 |
---|---|---|
committer | Travis Howell | 2009-07-17 00:25:27 +0000 |
commit | cff307e55db7cfe088885214bfc75b545223f9bd (patch) | |
tree | 0e4762da70d12282a1abcaf330368b832c870348 | |
parent | c0965b2a2aceab1468bccf5368b3c46f7a97efa1 (diff) | |
download | scummvm-rg350-cff307e55db7cfe088885214bfc75b545223f9bd.tar.gz scummvm-rg350-cff307e55db7cfe088885214bfc75b545223f9bd.tar.bz2 scummvm-rg350-cff307e55db7cfe088885214bfc75b545223f9bd.zip |
Fix bug #2821986 - COMI: setting to 'subtitles only' does not disable speech.
svn-id: r42548
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_track.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_track.cpp b/engines/scumm/imuse_digi/dimuse_track.cpp index 6ded6d23b2..a389c0e7e7 100644 --- a/engines/scumm/imuse_digi/dimuse_track.cpp +++ b/engines/scumm/imuse_digi/dimuse_track.cpp @@ -22,6 +22,7 @@ * $Id$ */ +#include "common/config-manager.h" #include "common/timer.h" #include "scumm/actor.h" @@ -136,6 +137,11 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, track->pan = a->_talkPan; track->vol = a->_talkVolume * 1000; } + + // The volume is set to zero, when using subtitles only setting in COMI + if (ConfMan.getBool("speech_mute") || _vm->VAR(_vm->VAR_VOICE_MODE) == 2) { + track->vol = 0; + } } assert(bits == 8 || bits == 12 || bits == 16); |