QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
snd_channels.c File Reference

Functions

channel_tSND_AllocChannel (void)
 Allocate a sound channel that can be used for playing sounds. More...
 
void SND_AmbientOff (void)
 Disable ambient sounds. More...
 
void SND_AmbientOn (void)
 Enable ambient sounds. More...
 
void SND_Channels_Init (void)
 Initialize the channels sub-subsystem. More...
 
void SND_ChannelStop (channel_t *chan)
 Stop a channel from playing. More...
 
void SND_LocalSound (const char *sound)
 Start a sound local to the client view. More...
 
void SND_ScanChannels (int wait)
 Scan channels looking for stopped channels. More...
 
void SND_SetListener (const vec3_t origin, const vec3_t forward, const vec3_t right, const vec3_t up, const byte *ambient_sound_level)
 Update the sound engine with the client's position and orientation and render some sound. More...
 
void SND_StartSound (int entnum, int entchannel, sfx_t *sfx, const vec3_t origin, float fvol, float attenuation)
 Start a sound playing. More...
 
void SND_StaticSound (sfx_t *sfx, const vec3_t origin, float vol, float attenuation)
 Create a sound generated by the world. More...
 
void SND_StopAllSounds (void)
 Stop all sounds from playing. More...
 
void SND_StopSound (int entnum, int entchannel)
 Stop an entity's sound. More...
 

Variables

channel_t snd_channels [MAX_CHANNELS]
 pool of available channels More...
 
int snd_total_channels
 number of active channels More...