Go to the source code of this file.
Macros | |
#define | SOUND_FULLVOLUME 80 |
#define | SOUND_LOOPATTENUATE 0.003 |
#define | MAX_SFX (MAX_SOUNDS*2) |
#define | MAX_PLAYSOUNDS 128 |
#define MAX_SFX (MAX_SOUNDS*2) |
sfx_t* S_AliasName | ( | char * | aliasname, |
char * | truename | ||
) |
playsound_t* S_AllocPlaysound | ( | void | ) |
Definition at line 293 of file snd_dma.c.
Referenced by CL_RegisterSounds().
Definition at line 205 of file snd_dma.c.
Referenced by S_RegisterSexedSound(), and S_RegisterSound().
void S_FreePlaysound | ( | playsound_t * | ps | ) |
void S_IssuePlaysound | ( | playsound_t * | ps | ) |
struct sfx_s* S_RegisterSexedSound | ( | entity_state_t * | ent, |
char * | base | ||
) |
sfx_t* S_RegisterSound | ( | char * | name | ) |
Definition at line 305 of file snd_dma.c.
Referenced by CL_EntityEvent(), CL_ParseConfigString(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_ParseTEnt(), CL_RegisterSounds(), CL_RegisterTEntSounds(), S_Play(), S_RegisterSexedSound(), and S_StartLocalSound().
Definition at line 164 of file snd_dma.c.
Referenced by CL_Shutdown(), CL_Snd_Restart_f(), and SNDDMA_BeginPainting().
void S_SpatializeOrigin | ( | vec3_t | origin, |
float | master_vol, | ||
float | dist_mult, | ||
int * | left_vol, | ||
int * | right_vol | ||
) |
void S_StartLocalSound | ( | char * | sound | ) |
Definition at line 738 of file snd_dma.c.
Referenced by CL_ParseServerMessage(), M_Draw(), M_Keydown(), and M_PopMenu().
void S_StartSound | ( | vec3_t | origin, |
int | entnum, | ||
int | entchannel, | ||
sfx_t * | sfx, | ||
float | fvol, | ||
float | attenuation, | ||
float | timeofs | ||
) |
Definition at line 655 of file snd_dma.c.
Referenced by CL_EntityEvent(), CL_ParseMuzzleFlash(), CL_ParseMuzzleFlash2(), CL_ParseStartSoundPacket(), CL_ParseTEnt(), S_Play(), and S_StartLocalSound().
Definition at line 785 of file snd_dma.c.
Referenced by CL_ClearState(), CL_Reconnect_f(), GetSoundtime(), S_Init(), SCR_BeginLoadingPlaque(), and VID_CheckChanges().
channel_t channels[MAX_CHANNELS] |
Definition at line 42 of file snd_dma.c.
Referenced by ma_get_bytes_per_frame(), S_PaintChannels(), S_PickChannel(), S_RawSamples(), S_StopAllSounds(), S_Update(), stb_vorbis_decode_filename(), stb_vorbis_decode_frame_pushdata(), stb_vorbis_decode_memory(), stb_vorbis_get_frame_float(), stb_vorbis_get_samples_float(), stb_vorbis_get_samples_float_interleaved(), stb_vorbis_get_samples_short(), and stb_vorbis_get_samples_short_interleaved().
dma_t dma |
Definition at line 47 of file snd_dma.c.
Referenced by DS_CreateBuffers(), DS_DestroyBuffers(), GetSoundtime(), ResampleSfx(), S_ClearBuffer(), S_Init(), S_LoadSound(), S_RawSamples(), S_SoundInfo_f(), S_SpatializeOrigin(), S_StartSound(), S_TransferPaintBuffer(), S_TransferStereo16(), S_Update_(), SNDDMA_BeginPainting(), SNDDMA_GetDMAPos(), SNDDMA_Init(), SNDDMA_InitDirect(), SNDDMA_InitWav(), and SNDDMA_Submit().
Definition at line 64 of file snd_dma.c.
Referenced by S_AliasName(), S_EndRegistration(), S_FindName(), S_Shutdown(), and S_SoundList().
vec3_t listener_forward |
Definition at line 50 of file snd_dma.c.
Referenced by S_Update().
vec3_t listener_origin |
Definition at line 49 of file snd_dma.c.
Referenced by S_SpatializeOrigin(), and S_Update().
vec3_t listener_right |
Definition at line 51 of file snd_dma.c.
Referenced by S_SpatializeOrigin(), and S_Update().
vec3_t listener_up |
Definition at line 52 of file snd_dma.c.
Referenced by S_Update().
int num_sfx |
Definition at line 65 of file snd_dma.c.
Referenced by S_AliasName(), S_EndRegistration(), S_FindName(), S_Init(), S_Shutdown(), and S_SoundList().
int paintedtime |
Definition at line 57 of file snd_dma.c.
Referenced by GetSoundtime(), S_AddLoopSounds(), S_Init(), S_IssuePlaysound(), S_PaintChannels(), S_PickChannel(), S_RawSamples(), S_StartSound(), S_TransferPaintBuffer(), S_TransferStereo16(), S_Update(), S_Update_(), and SNDDMA_Submit().
int s_beginofs |
Definition at line 72 of file snd_dma.c.
Referenced by S_StartSound().
playsound_t s_freeplays |
Definition at line 69 of file snd_dma.c.
Referenced by S_AllocPlaysound(), S_FreePlaysound(), and S_StopAllSounds().
cvar_t* s_khz |
Definition at line 77 of file snd_dma.c.
Referenced by S_Init(), SNDDMA_InitDirect(), and SNDDMA_InitWav().
cvar_t* s_loadas8bit |
Definition at line 76 of file snd_dma.c.
Referenced by ResampleSfx(), and S_Init().
cvar_t* s_mixahead |
Definition at line 79 of file snd_dma.c.
Referenced by S_Init(), and S_Update_().
playsound_t s_pendingplays |
Definition at line 70 of file snd_dma.c.
Referenced by S_PaintChannels(), S_StartSound(), and S_StopAllSounds().
playsound_t s_playsounds[MAX_PLAYSOUNDS] |
Definition at line 68 of file snd_dma.c.
Referenced by S_StopAllSounds().
cvar_t* s_primary |
Definition at line 80 of file snd_dma.c.
Referenced by DS_CreateBuffers(), and S_Init().
int s_rawend |
Definition at line 83 of file snd_dma.c.
Referenced by S_ClearBuffer(), S_PaintChannels(), and S_RawSamples().
portable_samplepair_t s_rawsamples[MAX_RAW_SAMPLES] |
Definition at line 84 of file snd_dma.c.
Referenced by S_PaintChannels(), and S_RawSamples().
qboolean s_registering |
Definition at line 54 of file snd_dma.c.
Referenced by S_BeginRegistration(), S_EndRegistration(), and S_RegisterSound().
int s_registration_sequence |
Definition at line 40 of file snd_dma.c.
Referenced by S_AliasName(), S_BeginRegistration(), S_EndRegistration(), S_FindName(), and S_RegisterSound().
cvar_t* s_show |
Definition at line 78 of file snd_dma.c.
Referenced by S_Init(), S_IssuePlaysound(), and S_Update().
cvar_t* s_testsound |
Definition at line 75 of file snd_dma.c.
Referenced by S_Init(), and S_TransferPaintBuffer().
cvar_t* s_volume |
Definition at line 74 of file snd_dma.c.
Referenced by S_Init(), S_InitScaletable(), S_PaintChannels(), and S_Update().
int sound_started =0 |
Definition at line 45 of file snd_dma.c.
Referenced by S_ClearBuffer(), S_Init(), S_RawSamples(), S_RegisterSound(), S_Shutdown(), S_SoundInfo_f(), S_StartLocalSound(), S_StartSound(), S_StopAllSounds(), S_Update(), and S_Update_().
int soundtime |
Definition at line 56 of file snd_dma.c.
Referenced by GetSoundtime(), S_Init(), and S_Update_().