21 #ifndef __DC_SOUND_SFXMGR_H
22 #define __DC_SOUND_SFXMGR_H
24 #include <sys/cdefs.h>
41 #define SFXHND_INVALID 0
sfxhnd_t snd_sfx_load(const char *fn)
Load a sound effect.
uint32 sfxhnd_t
Sound effect handle type.
Definition: sfxmgr.h:34
int snd_sfx_play(sfxhnd_t idx, int vol, int pan)
Play a sound effect.
void snd_sfx_stop(int chn)
Stop a single channel of sound.
void snd_sfx_unload(sfxhnd_t idx)
Unload a sound effect.
int snd_sfx_chn_alloc()
Allocate a sound channel for use outside the sound effect system.
int snd_sfx_play_chn(int chn, sfxhnd_t idx, int vol, int pan)
Play a sound effect on a specific channel.
void snd_sfx_unload_all()
Unload all loaded sound effects.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
void snd_sfx_chn_free(int chn)
Free a previously allocated channel.
void snd_sfx_stop_all()
Stop all channels playing sound effects.