Go to the source code of this file.
Macros | |
#define | MAX_SFX (MAX_SOUNDS*2) |
#define | MAX_PLAYSOUNDS 128 |
Variables | |
int | s_registration_sequence |
channel_t | channels [MAX_CHANNELS] |
int | s_numchannels |
sndstarted_t | s_started |
qboolean | s_active |
vec3_t | listener_origin |
vec3_t | listener_forward |
vec3_t | listener_right |
vec3_t | listener_up |
int | listener_entnum |
qboolean | s_registering |
int | paintedtime |
static sfx_t | known_sfx [MAX_SFX] |
static int | num_sfx |
playsound_t | s_playsounds [MAX_PLAYSOUNDS] |
playsound_t | s_freeplays |
playsound_t | s_pendingplays |
cvar_t * | s_volume |
cvar_t * | s_ambient |
static cvar_t * | s_enable |
static cvar_t * | s_auto_focus |
static cvar_t * | s_swapstereo |
static const cmdreg_t | c_sound [] |
|
static |
|
static |
Definition at line 379 of file main.c.
Referenced by CL_RegisterSounds().
|
static |
|
static |
float S_GetLinearVolume | ( | float | perceptual | ) |
Definition at line 1171 of file main.c.
Referenced by AL_Update(), OGG_Read(), and S_InitScaletable().
void S_IssuePlaysound | ( | playsound_t * | ps | ) |
qhandle_t S_RegisterSound | ( | const char * | name | ) |
Definition at line 391 of file main.c.
Referenced by CL_MuzzleFlash(), CL_MuzzleFlash2(), CL_ParseTEnt(), CL_RegisterSounds(), CL_RegisterTEntSounds(), CL_UpdateConfigstring(), entity_event(), S_StartLocalSound(), and S_StartLocalSound_().
sfx_t* S_SfxForHandle | ( | qhandle_t | hSfx | ) |
void S_StartLocalSound | ( | const char * | sound | ) |
Definition at line 911 of file main.c.
Referenced by CL_PlaySound_f(), UI_Draw(), and UI_StartSound().
void S_StartLocalSound_ | ( | const char * | sound | ) |
void S_StartSound | ( | const vec3_t | origin, |
int | entnum, | ||
int | entchannel, | ||
qhandle_t | hSfx, | ||
float | vol, | ||
float | attenuation, | ||
float | timeofs | ||
) |
Definition at line 824 of file main.c.
Referenced by CL_MuzzleFlash(), CL_MuzzleFlash2(), CL_ParseTEnt(), entity_event(), S_ParseStartSound(), S_StartLocalSound(), and S_StartLocalSound_().
Definition at line 932 of file main.c.
Referenced by BuildList(), CL_Changing_f(), CL_ClearState(), CL_ConnectionlessPacket(), CL_Precache_f(), CL_RestartFilesystem(), CL_RestartRefresh(), CL_Seek_f(), DMA_Activate(), DMA_GetTime(), PingServers(), S_Activate(), S_EndRegistration(), S_Init(), and S_Shutdown().
|
static |
Definition at line 126 of file main.c.
Referenced by S_Init(), and S_Shutdown().
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().
Definition at line 50 of file main.c.
Referenced by S_AllocSfx(), S_EndRegistration(), S_FindName(), S_FreeAllSounds(), S_RegisterSexedSounds(), S_RegisterSound(), S_SfxForHandle(), and S_SoundList_f().
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().
|
static |
Definition at line 51 of file main.c.
Referenced by S_AllocSfx(), S_EndRegistration(), S_FindName(), S_FreeAllSounds(), S_Init(), S_RegisterSexedSounds(), S_SfxForHandle(), and S_SoundList_f().
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().
|
static |
Definition at line 65 of file main.c.
Referenced by S_Activate(), S_Init(), and S_Shutdown().
playsound_t s_freeplays |
Definition at line 55 of file main.c.
Referenced by S_AllocPlaysound(), S_FreePlaysound(), and S_StopAllSounds().
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().
playsound_t s_playsounds[MAX_PLAYSOUNDS] |
Definition at line 54 of file main.c.
Referenced by S_StopAllSounds().
qboolean s_registering |
Definition at line 41 of file main.c.
Referenced by S_BeginRegistration(), S_EndRegistration(), S_RegisterSexedSound(), and S_RegisterSound().
int s_registration_sequence |
Definition at line 27 of file main.c.
Referenced by S_BeginRegistration(), S_EndRegistration(), S_FindName(), S_Init(), and S_RegisterSexedSounds().
sndstarted_t s_started |
Definition at line 32 of file main.c.
Referenced by OGG_PlayTrack(), OGG_Stop(), OGG_Stream(), OGG_TogglePlayback(), S_Activate(), S_EndRegistration(), S_FreeSound(), S_Init(), S_IssuePlaysound(), S_LoadSound(), S_PickChannel(), S_RawSamples(), S_RegisterSound(), S_Shutdown(), S_SoundInfo_f(), S_SoundList_f(), S_StartLocalSound(), S_StartLocalSound_(), S_StartSound(), S_StopAllSounds(), S_UnqueueRawSamples(), S_Update(), and SCR_PlayCinematic().
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().