diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-08 20:34:11 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-10-08 20:34:11 +0000 |
| commit | 4bd0274a2ef33312a55fc4c1a3df5f92173a829d (patch) | |
| tree | 11b4cc5980d95b323d466fa659d1fa276063cce8 /src/engine/interface.h | |
| parent | 51f25fdfeb5d4ebceae69602912cb382d1a9edaa (diff) | |
| download | zcatch-4bd0274a2ef33312a55fc4c1a3df5f92173a829d.tar.gz zcatch-4bd0274a2ef33312a55fc4c1a3df5f92173a829d.zip | |
new mixer. sample rate conversion
Diffstat (limited to 'src/engine/interface.h')
| -rw-r--r-- | src/engine/interface.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/engine/interface.h b/src/engine/interface.h index 94201ea0..635bd757 100644 --- a/src/engine/interface.h +++ b/src/engine/interface.h @@ -25,6 +25,9 @@ enum MASK_SET, MASK_ZERO, + SNDFLAG_LOOP=1, + SNDFLAG_POS=2, + SNDFLAG_ALL=3, CLIENTSTATE_OFFLINE=0, CLIENTSTATE_CONNECTING, @@ -366,21 +369,21 @@ void gfx_quads_draw_freeform( void gfx_quads_text(float x, float y, float size, const char *text); /* sound (client) */ -enum -{ - SND_PLAY_ONCE = 0, - SND_LOOP -}; - int snd_init(); + float snd_get_master_volume(); void snd_set_master_volume(float val); -int snd_load_wav(const char *filename); + +void snd_set_channel(int cid, float vol, float pan); + int snd_load_wv(const char *filename); -int snd_play(int cid, int sid, int loop, float x, float y); + +int snd_play_at(int cid, int sid, int flags, float x, float y); +int snd_play(int cid, int sid, int flags); + void snd_stop(int id); -void snd_set_vol(int id, float vol); void snd_set_listener_pos(float x, float y); + int snd_shutdown(); /* |