From fb8f8c6105893ccc2e4fa2cc39deaadb561ccfe5 Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Sun, 10 Nov 2002 16:23:02 +0000 Subject: added looping support to playRaw svn-id: r5501 --- sound/mixer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sound/mixer.h') diff --git a/sound/mixer.h b/sound/mixer.h index 14897b5834..599ce2e21f 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -64,6 +64,8 @@ private: uint32 _fpPos; uint32 _realSize, _rate; byte _flags; + void *_loop_ptr; + uint32 _loop_size; public: ChannelRaw(SoundMixer * mixer, void * sound, uint32 size, uint rate, byte flags, int id); @@ -200,6 +202,7 @@ public: FLAG_AUTOFREE = 8, /* sound buffer is freed automagically at the end of playing */ FLAG_FILE = 16, /* sound is a FILE * that's read from */ FLAG_REVERSE_STEREO = 32, /* sound should be reverse stereo */ + FLAG_LOOP = 64, /* loop the audio */ }; 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); -- cgit v1.2.3