diff options
author | Joost Peters | 2003-11-15 21:33:04 +0000 |
---|---|---|
committer | Joost Peters | 2003-11-15 21:33:04 +0000 |
commit | f979f185af997c5f11ca57854a1874088477a898 (patch) | |
tree | f9dba888ba28273eb77bdda8cf32bba673fe90ef /queen/sound.h | |
parent | b938b63ddf4bd09db1bd1d36408a217d6d13b3f8 (diff) | |
download | scummvm-rg350-f979f185af997c5f11ca57854a1874088477a898.tar.gz scummvm-rg350-f979f185af997c5f11ca57854a1874088477a898.tar.bz2 scummvm-rg350-f979f185af997c5f11ca57854a1874088477a898.zip |
- Enabled missing calls to _sound->playSong, now it should *really* play all SFX
- Moved sound/music related toggle variables to Sound class
- Changed "Couldn't find file.." warning() to debug(7, ..)
svn-id: r11303
Diffstat (limited to 'queen/sound.h')
-rw-r--r-- | queen/sound.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/queen/sound.h b/queen/sound.h index a717f4e07c..5af30e8396 100644 --- a/queen/sound.h +++ b/queen/sound.h @@ -56,6 +56,18 @@ public: void waitSfxFinished(); void playSong(int16 songNum); + bool sfxOn() { return _sfxToggle; } + void sfxToggle(bool val) { _sfxToggle = val; } + void toggleSfx() { _sfxToggle ^= true; } + + bool speechOn() { return _speechToggle; } + void speechToggle(bool val) { _speechToggle = val; } + void toggleSpeech() { _speechToggle ^= true; } + + bool musicOn() { return _musicToggle; } + void musicToggle(bool val) { _musicToggle = val; } + void toggleMusic() { _musicToggle ^= true; } + protected: SoundMixer *_mixer; Input *_input; @@ -64,6 +76,10 @@ protected: static const songData _song[]; static const tuneData _tune[]; static const char *_sfxName[]; + + bool _sfxToggle; + bool _speechToggle; + bool _musicToggle; int16 _lastOverride; int16 _lastMerge; |