32#define DEFAULT_SOUND_PACKET_VOLUME 255
33#define DEFAULT_SOUND_PACKET_ATTENUATION 1.0
37#define CHANNELFLAG_NONE 0
38#define CHANNELFLAG_RELIABLE (1 << 0)
39#define CHANNELFLAG_FORCELOOP (1 << 1)
40#define CHANNELFLAG_LOCALSOUND (1 << 2)
41#define CHANNELFLAG_PAUSED (1 << 3)
42#define CHANNELFLAG_FULLVOLUME (1 << 4)
48typedef struct sfx_s sfx_t;
76#define CHAN_MIN_AUTO -128
77#define CHAN_MAX_AUTO 0
78#define CHAN_MIN_SINGLE 1
79#define CHAN_MAX_SINGLE 127
80#define IS_CHAN_AUTO(n) ((n) >= CHAN_MIN_AUTO && (n) <= CHAN_MAX_AUTO)
81#define IS_CHAN_SINGLE(n) ((n) >= CHAN_MIN_SINGLE && (n) <= CHAN_MAX_SINGLE)
82#define IS_CHAN(n) (IS_CHAN_AUTO(n) || IS_CHAN_SINGLE(n))
85#define CHAN_ENGINE2NET(c) (c)
86#define CHAN_NET2ENGINE(c) (c)
90#define CHAN_USER2ENGINE(c) (c)
91#define CHAN_ENGINE2USER(c) (c)
92#define CHAN_ENGINE2CVAR(c) (abs(c))
GLsizei const GLfloat * value
void S_UnloadAllSounds_f(struct cmd_state_s *cmd)
void S_StaticSound(sfx_t *sfx, vec3_t origin, float fvol, float attenuation)
void S_SetChannelVolume(unsigned int ch_ind, float fvol)
void S_StopAllSounds(void)
int S_StartSound(int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation)
S_StartSound returns the channel index, or -1 if an error occurred.
qbool S_LocalSoundEx(const char *s, int chan, float fvol)
void S_UnblockSound(void)
float S_GetChannelPosition(unsigned int ch_ind)
void S_Update(const matrix4x4_t *listenermatrix)
void S_StopChannel(unsigned int channel_ind, qbool lockmutex, qbool freesfx)
void S_PauseGameSounds(qbool toggle)
sfx_t * S_FindName(const char *name)
void S_StopAllSounds_f(struct cmd_state_s *cmd)
sfx_t * S_PrecacheSound(const char *sample, qbool complain, qbool levelsound)
float S_SoundLength(const char *name)
qbool S_SetChannelFlag(unsigned int ch_ind, unsigned int flag, qbool value)
int S_GetSoundChannels(void)
float S_GetEntChannelPosition(int entnum, int entchannel)
qbool S_IsSoundPrecached(const sfx_t *sfx)
void S_StopSound(int entnum, int entchannel)
void S_SetChannelSpeed(unsigned int ch_ind, float fspeed)
int S_StartSound_StartPosition_Flags(int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol, float attenuation, float startposition, int flags, float fspeed)
int S_GetSoundWidth(void)
qbool S_LocalSound(const char *s)