diff options
author | Sylvain Dupont | 2010-10-16 19:27:11 +0000 |
---|---|---|
committer | Sylvain Dupont | 2010-10-16 19:27:11 +0000 |
commit | 748e00f1cf30e9690532bd98087de2e65ca2bac2 (patch) | |
tree | 5cf53064657bf66cf37ab452e1dc2449cec9b871 /engines/toon/audio.h | |
parent | c9f9c75a838719921003287af6c44625ee71352c (diff) | |
download | scummvm-rg350-748e00f1cf30e9690532bd98087de2e65ca2bac2.tar.gz scummvm-rg350-748e00f1cf30e9690532bd98087de2e65ca2bac2.tar.bz2 scummvm-rg350-748e00f1cf30e9690532bd98087de2e65ca2bac2.zip |
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
Diffstat (limited to 'engines/toon/audio.h')
-rw-r--r-- | engines/toon/audio.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 |