diff options
author | Oliver Kiehl | 2002-11-10 16:23:02 +0000 |
---|---|---|
committer | Oliver Kiehl | 2002-11-10 16:23:02 +0000 |
commit | fb8f8c6105893ccc2e4fa2cc39deaadb561ccfe5 (patch) | |
tree | a0a20577fa586078429606b6b49b00d4b3d7593c /sound/mixer.h | |
parent | 0eb3a9017dc5381fa06ec3dd5284d0f46dd240cf (diff) | |
download | scummvm-rg350-fb8f8c6105893ccc2e4fa2cc39deaadb561ccfe5.tar.gz scummvm-rg350-fb8f8c6105893ccc2e4fa2cc39deaadb561ccfe5.tar.bz2 scummvm-rg350-fb8f8c6105893ccc2e4fa2cc39deaadb561ccfe5.zip |
added looping support to playRaw
svn-id: r5501
Diffstat (limited to 'sound/mixer.h')
-rw-r--r-- | sound/mixer.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |