aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-04-26 13:13:07 +0300
committerEugene Sandulenko2014-04-26 13:13:07 +0300
commitcb565e9eafc34b26d160dd4c5c4cf64e05872498 (patch)
tree39844ba1b05e30c471206df201989bd01dd530b8 /engines
parent04ca386e6808e66d97f60d66c45954699ec8ef26 (diff)
downloadscummvm-rg350-cb565e9eafc34b26d160dd4c5c4cf64e05872498.tar.gz
scummvm-rg350-cb565e9eafc34b26d160dd4c5c4cf64e05872498.tar.bz2
scummvm-rg350-cb565e9eafc34b26d160dd4c5c4cf64e05872498.zip
FULLPIPE: Implement FullpipeEngine::toggleMute()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/sound.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index aa91f25087..03e350bf85 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -158,7 +158,11 @@ void FullpipeEngine::stopAllSounds() {
}
void FullpipeEngine::toggleMute() {
- warning("STUB: FullpipeEngine::toggleMute()");
+ if (g_fp->_soundEnabled) {
+ g_fp->_sfxVolume = g_fp->_sfxVolume != -10000 ? -10000 : 0;
+
+ updateSoundVolume();
+ }
}
void FullpipeEngine::playSound(int id, int flag) {