From d227e40e53f5458d2055fcb855557c448d405f6b Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 16 Sep 2015 22:09:08 +0200 Subject: SHERLOCK: Play rain sound during 3DO Scalpel intro This is based on guesswork, particularly with regards to the volume. It sounds pretty close to a YouTube video I saw of the original game, and at least it's not unpleasantly loud. --- engines/sherlock/sound.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines/sherlock/sound.h') diff --git a/engines/sherlock/sound.h b/engines/sherlock/sound.h index b2d1584e85..44969b8923 100644 --- a/engines/sherlock/sound.h +++ b/engines/sherlock/sound.h @@ -46,6 +46,7 @@ private: SherlockEngine *_vm; Audio::Mixer *_mixer; Audio::SoundHandle _scalpelEffectsHandle; + Audio::SoundHandle _aiffHandle; Audio::SoundHandle _tattooEffectsHandle[MAX_MIXER_CHANNELS]; Audio::SoundHandle _speechHandle; int _curPriority; @@ -87,6 +88,16 @@ public: * Play the sound in the specified resource */ bool playSound(const Common::String &name, WaitType waitType, int priority = 100, const char *libraryFilename = nullptr); + + /** + * Play the specified AIFF file. (Used for the 3DO Scalpel intro.) + */ + void playAiff(const Common::String &name, int volume = Audio::Mixer::kMaxChannelVolume, bool loop = false); + + /** + * Stop the AIFF sound that was started with playAiff(). + */ + void stopAiff(); /** * Play a previously loaded sound -- cgit v1.2.3