From cb565e9eafc34b26d160dd4c5c4cf64e05872498 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 26 Apr 2014 13:13:07 +0300 Subject: FULLPIPE: Implement FullpipeEngine::toggleMute() --- engines/fullpipe/sound.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines') 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) { -- cgit v1.2.3