#include "../client.h"
Go to the source code of this file.
Classes | |
struct | samplepair_s |
struct | sfxcache_s |
struct | sfx_s |
struct | playsound_s |
struct | channel_s |
struct | wavinfo_t |
Macros | |
#define | SOUND_FULLVOLUME 80 |
#define | SOUND_LOOPATTENUATE 0.003 |
#define | MAX_CHANNELS 32 |
#define | S_MAX_RAW_SAMPLES 8192 |
#define | S_Malloc(x) Z_TagMalloc(x, TAG_SOUND) |
#define | S_CopyString(x) Z_TagCopyString(x, TAG_SOUND) |
Typedefs | |
typedef struct samplepair_s | samplepair_t |
typedef struct sfxcache_s | sfxcache_t |
typedef struct sfx_s | sfx_t |
typedef struct playsound_s | playsound_t |
typedef struct channel_s | channel_t |
Functions | |
sfx_t * | S_SfxForHandle (qhandle_t hSfx) |
sfxcache_t * | S_LoadSound (sfx_t *s) |
channel_t * | S_PickChannel (int entnum, int entchannel) |
void | S_IssuePlaysound (playsound_t *ps) |
void | S_BuildSoundList (int *sounds) |
Variables | |
qboolean | s_active |
channel_t | channels [MAX_CHANNELS] |
int | s_numchannels |
int | paintedtime |
playsound_t | s_pendingplays |
vec3_t | listener_origin |
vec3_t | listener_forward |
vec3_t | listener_right |
vec3_t | listener_up |
int | listener_entnum |
samplepair_t | s_rawsamples [S_MAX_RAW_SAMPLES] |
int | s_rawend |
wavinfo_t | s_info |
cvar_t * | s_volume |
cvar_t * | s_ambient |
cvar_t * | s_show |
#define S_CopyString | ( | x | ) | Z_TagCopyString(x, TAG_SOUND) |
#define S_Malloc | ( | x | ) | Z_TagMalloc(x, TAG_SOUND) |
typedef struct playsound_s playsound_t |
typedef struct samplepair_s samplepair_t |
typedef struct sfxcache_s sfxcache_t |
void S_IssuePlaysound | ( | playsound_t * | ps | ) |
sfxcache_t* S_LoadSound | ( | sfx_t * | s | ) |
Definition at line 288 of file mem.c.
Referenced by S_EndRegistration(), S_IssuePlaysound(), S_PaintChannels(), S_RegisterSexedSound(), S_RegisterSound(), and S_StartSound().
sfx_t* S_SfxForHandle | ( | qhandle_t | hSfx | ) |
channel_t channels[MAX_CHANNELS] |
Definition at line 29 of file main.c.
Referenced by AL_FindLoopingSound(), AL_PlayChannel(), AL_RawSamples(), AL_StopAllChannels(), AL_Update(), IMG_LOAD(), S_PaintChannels(), S_PickChannel(), S_RawSamples(), S_StopAllSounds(), and S_Update().
int listener_entnum |
Definition at line 39 of file main.c.
Referenced by AL_Spatialize(), CL_GetEntitySoundOrigin(), S_BuildSoundList(), S_PickChannel(), S_StartLocalSound(), S_StartLocalSound_(), and S_Update().
vec3_t listener_forward |
Definition at line 36 of file main.c.
Referenced by AL_Update(), and CL_CalcViewValues().
vec3_t listener_origin |
Definition at line 35 of file main.c.
Referenced by AL_AddLoopSounds(), AL_Spatialize(), AL_Update(), CL_CalcViewValues(), and CL_GetEntitySoundOrigin().
vec3_t listener_right |
Definition at line 37 of file main.c.
Referenced by CL_CalcViewValues().
vec3_t listener_up |
Definition at line 38 of file main.c.
Referenced by AL_Update(), and CL_CalcViewValues().
int paintedtime |
Definition at line 43 of file main.c.
Referenced by AL_AddLoopSounds(), AL_IssuePlaysounds(), AL_Update(), DMA_DriftBeginofs(), DMA_GetTime(), DMA_Update(), OGG_Stream(), S_Init(), S_IssuePlaysound(), S_PaintChannels(), S_PickChannel(), S_RawSamples(), S_StartSound(), S_Update(), TransferPaintBuffer(), TransferStereo(), TransferStereo16(), and WAVE_Submit().
qboolean s_active |
Definition at line 33 of file main.c.
Referenced by AL_Update(), DMA_Activate(), S_Activate(), S_Shutdown(), and S_StartSound().
cvar_t* s_ambient |
Definition at line 59 of file main.c.
Referenced by AL_AddLoopSounds(), S_BuildSoundList(), and S_Init().
wavinfo_t s_info |
Definition at line 22 of file mem.c.
Referenced by AL_UploadSfx(), GetWavinfo(), and S_LoadSound().
int s_numchannels |
Definition at line 30 of file main.c.
Referenced by AL_FindLoopingSound(), AL_Init(), AL_Shutdown(), AL_SoundInfo(), AL_StopAllChannels(), AL_Update(), DMA_Init(), DMA_Shutdown(), S_PaintChannels(), S_PickChannel(), and S_Update().
playsound_t s_pendingplays |
Definition at line 56 of file main.c.
Referenced by AL_IssuePlaysounds(), S_PaintChannels(), S_StartSound(), and S_StopAllSounds().
int s_rawend |
Definition at line 28 of file mix.c.
Referenced by AL_RawSamples(), OGG_Stream(), S_PaintChannels(), and S_RawSamples().
samplepair_t s_rawsamples[S_MAX_RAW_SAMPLES] |
Definition at line 27 of file mix.c.
Referenced by S_PaintChannels(), and S_RawSamples().
cvar_t* s_show |
Referenced by AL_PlayChannel(), AL_StopChannel(), AL_Update(), S_Init(), S_IssuePlaysound(), and S_Update().
cvar_t* s_volume |
Definition at line 58 of file main.c.
Referenced by AL_Update(), S_Init(), S_InitScaletable(), S_RawSamples(), and S_Update().