From 9e1ae6d82a7c6dbf08f78488d99daaff416c47ae Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 14 Jun 2015 13:34:37 +0300 Subject: SHERLOCK: RT: Initial support for multiple sound effects The paper boy in the intro sounds correct now --- engines/sherlock/sound.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/sound.h') diff --git a/engines/sherlock/sound.h b/engines/sherlock/sound.h index 9dd2edb9ce..8514559434 100644 --- a/engines/sherlock/sound.h +++ b/engines/sherlock/sound.h @@ -39,11 +39,14 @@ enum WaitType { WAIT_RETURN_IMMEDIATELY = 0, WAIT_FINISH = 1, WAIT_KBD_OR_FINISH = 2 }; +#define MAX_MIXER_CHANNELS 10 + class Sound { private: SherlockEngine *_vm; Audio::Mixer *_mixer; - Audio::SoundHandle _effectsHandle; + Audio::SoundHandle _scalpelEffectsHandle; + Audio::SoundHandle _tattooEffectsHandle[MAX_MIXER_CHANNELS]; int _curPriority; byte decodeSample(byte sample, byte& reference, int16& scale); @@ -93,6 +96,8 @@ public: void stopSndFuncPtr(int v1, int v2); void freeDigiSound(); + + Audio::SoundHandle getFreeSoundHandle(); }; } // End of namespace Sherlock -- cgit v1.2.3