aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-13 19:11:06 -0400
committerPaul Gilbert2015-08-13 19:11:06 -0400
commit78790534791028f2b827a5ec7b5509f8a8c2dc4b (patch)
tree6644122a9f48984678608884d17dfa8c211239d2 /engines/sherlock/sound.h
parente02965c40a607209cc7a46b78cfeab21b0e292da (diff)
downloadscummvm-rg350-78790534791028f2b827a5ec7b5509f8a8c2dc4b.tar.gz
scummvm-rg350-78790534791028f2b827a5ec7b5509f8a8c2dc4b.tar.bz2
scummvm-rg350-78790534791028f2b827a5ec7b5509f8a8c2dc4b.zip
SHERLOCK: RT: Merge playSound and playSpeech code
Diffstat (limited to 'engines/sherlock/sound.h')
-rw-r--r--engines/sherlock/sound.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sherlock/sound.h b/engines/sherlock/sound.h
index c71a29c3f4..5654c50f6a 100644
--- a/engines/sherlock/sound.h
+++ b/engines/sherlock/sound.h
@@ -50,7 +50,16 @@ private:
Audio::SoundHandle _speechHandle;
int _curPriority;
+ /**
+ * Decode a sound sample
+ */
byte decodeSample(byte sample, byte& reference, int16& scale);
+
+ /**
+ * Handle playing a sound or speech
+ */
+ bool playSoundResource(const Common::String &name, const Common::String &libFilename,
+ Audio::Mixer::SoundType soundType, Audio::SoundHandle &handle, int volume);
public:
bool _digitized;
int _voices;