diff options
author | Paul Gilbert | 2015-03-16 22:42:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-16 22:42:19 -0400 |
commit | 0ee3f1895f6b6dcf4bbb70ba309fb66d0ca39613 (patch) | |
tree | d46bcb7028a37a0eb61d7650db5ad0770d8adc87 /engines/sherlock/sound.h | |
parent | b762bebf27ce7c231dd17fc05bc32f72911e6ed5 (diff) | |
download | scummvm-rg350-0ee3f1895f6b6dcf4bbb70ba309fb66d0ca39613.tar.gz scummvm-rg350-0ee3f1895f6b6dcf4bbb70ba309fb66d0ca39613.tar.bz2 scummvm-rg350-0ee3f1895f6b6dcf4bbb70ba309fb66d0ca39613.zip |
SHERLOCK: Beginnings of animation sequence loop
Diffstat (limited to 'engines/sherlock/sound.h')
-rw-r--r-- | engines/sherlock/sound.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/sherlock/sound.h b/engines/sherlock/sound.h index b1759a9c8e..7775016c94 100644 --- a/engines/sherlock/sound.h +++ b/engines/sherlock/sound.h @@ -30,16 +30,26 @@ namespace Sherlock { class SherlockEngine; +enum WaitType { + WAIT_RETURN_IMMEDIATELY = 0, WAIT_FINISH = 1, WAIT_KBD_OR_FINISH = 2 +}; + class Sound { private: SherlockEngine *_vm; public: + bool _sfxEnabled; + bool _musicEnabled; + bool _voicesEnabled; + bool _playingEpilogue; +public: Sound(SherlockEngine *vm); - void playSound(const Common::String &name); + void playSound(const Common::String &name, WaitType waitType = WAIT_RETURN_IMMEDIATELY); void cacheSound(const Common::String &name, int index); void playCachedSound(int index); void clearCache(); + void stopSound(); void playMusic(const Common::String &name); void stopMusic(); |