aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.h')
-rw-r--r--sound/mixer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/mixer.h b/sound/mixer.h
index 48e0b6b5c4..cdc45a7fee 100644
--- a/sound/mixer.h
+++ b/sound/mixer.h
@@ -41,6 +41,7 @@ private:
class Channel {
public:
bool _toBeDestroyed;
+ int _id;
virtual void mix(int16 *data, uint len) = 0;
void destroy() {
_toBeDestroyed = true;
@@ -63,7 +64,7 @@ private:
byte _flags;
public:
- ChannelRaw(SoundMixer * mixer, void * sound, uint32 size, uint rate, byte flags);
+ ChannelRaw(SoundMixer * mixer, void * sound, uint32 size, uint rate, byte flags, int id);
void mix(int16 * data, uint len);
void realDestroy();
@@ -178,6 +179,7 @@ public:
FLAG_FILE = 16, /* sound is a FILE * that's read from */
};
int playRaw(PlayingSoundHandle * handle, void * sound, uint32 size, uint rate, byte flags);
+ int playRaw(PlayingSoundHandle * handle, void * sound, uint32 size, uint rate, byte flags, int id);
int playStream(PlayingSoundHandle * handle, int index, void * sound, uint32 size, uint rate,
byte flags);
#ifdef COMPRESSED_SOUND_FILE