diff options
author | Johannes Schickel | 2008-04-20 14:25:37 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-20 14:25:37 +0000 |
commit | 96fd18a13bbe4def704e1f9b15100f3dc48aaf64 (patch) | |
tree | 53b8486bb24ef5131e26529dea0dce2984cf7996 /engines/kyra/sound.h | |
parent | cdfcab93153fd660e633a98e48a441cbf1cda4b9 (diff) | |
download | scummvm-rg350-96fd18a13bbe4def704e1f9b15100f3dc48aaf64.tar.gz scummvm-rg350-96fd18a13bbe4def704e1f9b15100f3dc48aaf64.tar.bz2 scummvm-rg350-96fd18a13bbe4def704e1f9b15100f3dc48aaf64.zip |
Implemented sound priority handling.
svn-id: r31597
Diffstat (limited to 'engines/kyra/sound.h')
-rw-r--r-- | engines/kyra/sound.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index fb70d6dcf1..04fbf3a1a9 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -515,6 +515,7 @@ public: * * @param stream Data stream used for playback * It will be deleted when playback is finished + * @param priority priority of the sound * @param type type * @param volume channel volume * @param loop true if the sound should loop (endlessly) @@ -522,7 +523,7 @@ public: * * @return channel playing the sound */ - int playSound(Common::SeekableReadStream *stream, kSoundTypes type, int volume = 255, bool loop = false, int channel = -1); + int playSound(Common::SeekableReadStream *stream, uint8 priority, kSoundTypes type, int volume = 255, bool loop = false, int channel = -1); /** * Checks if a given channel is playing a sound. @@ -559,6 +560,7 @@ private: struct Sound { Audio::SoundHandle handle; + uint8 priority; AUDStream *stream; } _sounds[4]; }; |