From 0ee3f1895f6b6dcf4bbb70ba309fb66d0ca39613 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 16 Mar 2015 22:42:19 -0400 Subject: SHERLOCK: Beginnings of animation sequence loop --- engines/sherlock/sound.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/sound.h') 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(); -- cgit v1.2.3