aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/sound.h
diff options
context:
space:
mode:
authorFilippos Karapetis2015-06-14 13:34:37 +0300
committerFilippos Karapetis2015-06-14 13:34:37 +0300
commit9e1ae6d82a7c6dbf08f78488d99daaff416c47ae (patch)
treed2a4fbaf79d2e88642be67f678f7107001affef2 /engines/sherlock/sound.h
parenta7e73e5785783fa0417a401a51d8cf809e4add11 (diff)
downloadscummvm-rg350-9e1ae6d82a7c6dbf08f78488d99daaff416c47ae.tar.gz
scummvm-rg350-9e1ae6d82a7c6dbf08f78488d99daaff416c47ae.tar.bz2
scummvm-rg350-9e1ae6d82a7c6dbf08f78488d99daaff416c47ae.zip
SHERLOCK: RT: Initial support for multiple sound effects
The paper boy in the intro sounds correct now
Diffstat (limited to 'engines/sherlock/sound.h')
-rw-r--r--engines/sherlock/sound.h7
1 files changed, 6 insertions, 1 deletions
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