From 748e00f1cf30e9690532bd98087de2e65ca2bac2 Mon Sep 17 00:00:00 2001 From: Sylvain Dupont Date: Sat, 16 Oct 2010 19:27:11 +0000 Subject: TOON: Implemented the 4 different mute modes for sound/text As specified in the hotkeys screen (music,dialog,sound,text on/off) Sounds are still played but with a volume = 0 (for timing issues) svn-id: r53545 --- engines/toon/audio.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'engines/toon/audio.h') diff --git a/engines/toon/audio.h b/engines/toon/audio.h index 4527e1fe4b..70d399dd1a 100644 --- a/engines/toon/audio.h +++ b/engines/toon/audio.h @@ -124,7 +124,12 @@ public: void stopCurrentVoice(); void setMusicVolume(int32 volume); void stopMusic(); - + void muteVoice(bool mute); + void muteMusic(bool mute); + void muteSfx(bool mute); + bool isVoiceMuted() { return voiceMuted; } + bool isMusicMuted() { return musicMuted; } + bool isSfxMuted() { return sfxMuted; } bool loadAudioPack(int32 id, Common::String indexFile, Common::String packFile); @@ -140,6 +145,11 @@ public: Common::String _currentMusicName; ToonEngine *_vm; Audio::Mixer *_mixer; + +protected: + bool voiceMuted; + bool musicMuted; + bool sfxMuted; }; } // End of namespace Toon -- cgit v1.2.3