![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
#include "snd_main.h"
#include "snd_ogg.h"
#include "csprogs.h"
#include "cl_collision.h"
#include "cdaudio.h"
Go to the source code of this file.
Macros | |
#define | SND_MAX_CHANNELS 8 |
#define | SND_MAX_SPEED 192000 |
#define | SND_MAX_WIDTH 2 |
#define | SND_MIN_CHANNELS 1 |
#define | SND_MIN_SPEED 8000 |
#define | SND_MIN_WIDTH 1 |
#define | SND_SPEAKERLAYOUTS (sizeof(snd_speakerlayouts) / sizeof(snd_speakerlayouts[0])) |
#define | SWAP_LISTENERS(l1, l2, tmpl) |
Enumerations | |
enum | spatialmethod_t { SPATIAL_NONE , SPATIAL_LOG , SPATIAL_POW , SPATIAL_THRESH } |
Variables | |
cvar_t | _snd_mixahead = {CF_CLIENT | CF_ARCHIVE, "_snd_mixahead", "0.15", "how much sound to mix ahead of time"} |
static cvar_t | ambient_fade = {CF_CLIENT, "ambient_fade", "100", "rate of volume fading when moving from one environment to another"} |
static cvar_t | ambient_level = {CF_CLIENT, "ambient_level", "0.3", "volume of environment noises (water and wind)"} |
static const char * | ambient_names [2] = { "sound/ambience/water1.wav", "sound/ambience/wind2.wav" } |
static sfx_t * | ambient_sfxs [2] = { NULL, NULL } |
cvar_t | bgmvolume = {CF_CLIENT | CF_ARCHIVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"} |
sfx_t | changevolume_sfx = {""} |
channel_t | channels [MAX_CHANNELS] |
cvar_t | cl_gameplayfix_soundsmovewithentities |
static int | current_channellayout = SND_CHANNELLAYOUT_AUTO |
static int | current_channellayout_used = SND_CHANNELLAYOUT_AUTO |
static bool | current_swapstereo = false |
static unsigned int | extrasoundtime = 0 |
static sfx_t * | known_sfx = NULL |
matrix4x4_t | listener_basematrix |
matrix4x4_t | listener_matrix [SND_LISTENERS] |
vec3_t | listener_origin |
static unsigned char * | listener_pvs = NULL |
static int | listener_pvsbytes = 0 |
cvar_t | mastervolume = {CF_CLIENT | CF_ARCHIVE, "mastervolume", "0.7", "master volume"} |
static cvar_t | nosound = {CF_CLIENT, "nosound", "0", "disables sound"} |
static unsigned int | oldpaintedtime = 0 |
qbool | simsound = false |
If simsound is true, the sound card is not initialized and no sound is submitted to it. | |
cvar_t | snd_attenuation_decibel = {CF_CLIENT | CF_ARCHIVE, "snd_attenuation_decibel", "0", "Decibel sound attenuation per sound radius distance"} |
cvar_t | snd_attenuation_exponent = {CF_CLIENT | CF_ARCHIVE, "snd_attenuation_exponent", "1", "Exponent of (1-radius) in sound attenuation formula"} |
bool | snd_blocked = false |
When true, we submit silence to the audio device. | |
cvar_t | snd_bufferlength = {CF_CLIENT | CF_ARCHIVE, "snd_bufferlength", "20", "Desired length of the SDL2 audio buffer in milliseconds, smaller values reduce latency but can lead to underflow if the system is heavily loaded. Affects only how many sample frames are requested (which will be a power of 2 between 512 and 8192 inclusive)"} |
cvar_t | snd_channel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel0volume", "1", "volume multiplier of the auto-allocate entity channel"} |
cvar_t | snd_channel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel1volume", "1", "volume multiplier of the 1st entity channel"} |
cvar_t | snd_channel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel2volume", "1", "volume multiplier of the 2nd entity channel"} |
cvar_t | snd_channel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel3volume", "1", "volume multiplier of the 3rd entity channel"} |
cvar_t | snd_channel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel4volume", "1", "volume multiplier of the 4th entity channel"} |
cvar_t | snd_channel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel5volume", "1", "volume multiplier of the 5th entity channel"} |
cvar_t | snd_channel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel6volume", "1", "volume multiplier of the 6th entity channel"} |
cvar_t | snd_channel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel7volume", "1", "volume multiplier of the 7th entity channel"} |
cvar_t | snd_channellayout = {CF_CLIENT, "snd_channellayout", "0", "channel layout. Can be 0 (auto - snd_restart needed), 1 (standard layout), or 2 (ALSA layout)"} |
static cvar_t | snd_channels = {CF_CLIENT | CF_ARCHIVE, "snd_channels", "2", "number of channels for the sound output (2 for stereo; up to 8 supported for 3D sound)"} |
cvar_t | snd_csqcchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel0volume", "1", "volume multiplier of the auto-allocate entity channel CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel1volume", "1", "volume multiplier of the 1st entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel2volume", "1", "volume multiplier of the 2nd entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel3volume", "1", "volume multiplier of the 3rd entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel4volume", "1", "volume multiplier of the 4th entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel5volume", "1", "volume multiplier of the 5th entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel6volume", "1", "volume multiplier of the 6th entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_csqcchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel7volume", "1", "volume multiplier of the 7th entity channel of CSQC entities (DEPRECATED)"} |
cvar_t | snd_entchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel1volume", "1", "volume multiplier of the 1st entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel2volume", "1", "volume multiplier of the 2nd entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel3volume", "1", "volume multiplier of the 3rd entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel4volume", "1", "volume multiplier of the 4th entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel5volume", "1", "volume multiplier of the 5th entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel6volume", "1", "volume multiplier of the 6th entity channel of regular entities (DEPRECATED)"} |
cvar_t | snd_entchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel7volume", "1", "volume multiplier of the 7th entity channel of regular entities (DEPRECATED)"} |
static cvar_t | snd_identicalsoundrandomization_tics = {CF_CLIENT, "snd_identicalsoundrandomization_tics", "0", "if nonzero, how many tics to limit sound randomization as defined by snd_identicalsoundrandomization_time"} |
static cvar_t | snd_identicalsoundrandomization_time = {CF_CLIENT, "snd_identicalsoundrandomization_time", "0.1", "how much seconds to randomly skip (positive) or delay (negative) sounds when multiple identical sounds are started on the same frame"} |
cvar_t | snd_initialized = {CF_CLIENT | CF_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"} |
cvar_t | snd_maxchannelvolume = {CF_CLIENT | CF_ARCHIVE, "snd_maxchannelvolume", "10", "maximum volume of a single sound"} |
mempool_t * | snd_mempool |
cvar_t | snd_mutewhenidle = {CF_CLIENT | CF_ARCHIVE, "snd_mutewhenidle", "1", "1 disables sound output when game window is inactive, 2 disables it only when the window is minimised"} |
cvar_t | snd_playerchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel1volume", "1", "volume multiplier of the 1st entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel2volume", "1", "volume multiplier of the 2nd entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel3volume", "1", "volume multiplier of the 3rd entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel4volume", "1", "volume multiplier of the 4th entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel5volume", "1", "volume multiplier of the 5th entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel6volume", "1", "volume multiplier of the 6th entity channel of player entities (DEPRECATED)"} |
cvar_t | snd_playerchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel7volume", "1", "volume multiplier of the 7th entity channel of player entities (DEPRECATED)"} |
static cvar_t | snd_precache = {CF_CLIENT, "snd_precache", "1", "loads sounds before they are used"} |
snd_ringbuffer_t * | snd_renderbuffer = NULL |
static cvar_t | snd_show = {CF_CLIENT, "snd_show", "0", "shows some statistics about sound mixing"} |
cvar_t | snd_softclip = {CF_CLIENT | CF_ARCHIVE, "snd_softclip", "0", "Use soft-clipping. Soft-clipping can make the sound more smooth if very high volume levels are used. Enable this option if the dynamic range of the loudspeakers is very low. WARNING: This feature creates distortion and should be considered a last resort."} |
cvar_t | snd_soundradius = {CF_CLIENT | CF_ARCHIVE, "snd_soundradius", "1200", "radius of weapon sounds and other standard sound effects (monster idle noises are half this radius and flickering light noises are one third of this radius)"} |
cvar_t | snd_spatialization_control = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_control", "0", "enable spatialization control (headphone friendly mode)"} |
cvar_t | snd_spatialization_max = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_max", "0.95", "maximum spatialization of sounds"} |
cvar_t | snd_spatialization_max_radius = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_max_radius", "100", "use maximum spatialization below this radius"} |
cvar_t | snd_spatialization_min = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_min", "0.70", "minimum spatializazion of sounds"} |
cvar_t | snd_spatialization_min_radius = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_min_radius", "10000", "use minimum spatialization above to this radius"} |
cvar_t | snd_spatialization_occlusion = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_occlusion", "1", "enable occlusion testing on spatialized sounds, which simply quiets sounds that are blocked by the world; 1 enables PVS method, 2 enables LineOfSight method, 3 enables both"} |
cvar_t | snd_spatialization_power = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_power", "0", "exponent of the spatialization falloff curve (0: logarithmic)"} |
cvar_t | snd_spatialization_prologic = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_prologic", "0", "use dolby prologic (I, II or IIx) encoding (snd_channels must be 2)"} |
cvar_t | snd_spatialization_prologic_frontangle = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_prologic_frontangle", "30", "the angle between the front speakers and the center speaker"} |
speakerlayout_t | snd_speakerlayout |
static const speakerlayout_t | snd_speakerlayouts [] |
static cvar_t | snd_speed = {CF_CLIENT | CF_ARCHIVE, "snd_speed", "48000", "sound output frequency, in hertz"} |
static cvar_t | snd_startloopingsounds = {CF_CLIENT, "snd_startloopingsounds", "1", "whether to start sounds that would loop (you want this to be 1); existing sounds are not affected"} |
static cvar_t | snd_startnonloopingsounds = {CF_CLIENT, "snd_startnonloopingsounds", "1", "whether to start sounds that would not loop (you want this to be 1); existing sounds are not affected"} |
static double | snd_starttime = 0.0 |
cvar_t | snd_staticvolume = {CF_CLIENT | CF_ARCHIVE, "snd_staticvolume", "1", "volume of ambient sound effects (such as swampy sounds at the start of e1m2)"} |
cvar_t | snd_streaming = {CF_CLIENT | CF_ARCHIVE, "snd_streaming", "1", "enables keeping compressed ogg sound files compressed, decompressing them only as needed, otherwise they will be decompressed completely at load (may use a lot of memory); when set to 2, streaming is performed even if this would waste memory"} |
cvar_t | snd_streaming_length = {CF_CLIENT | CF_ARCHIVE, "snd_streaming_length", "1", "decompress sounds completely if they are less than this play time when snd_streaming is 1"} |
cvar_t | snd_swapstereo = {CF_CLIENT | CF_ARCHIVE, "snd_swapstereo", "0", "swaps left/right speakers for old ISA soundblaster cards"} |
qbool | snd_threaded = false |
enables use of snd_usethreadedmixing, provided that no sound hacks are in effect (like timedemo) | |
qbool | snd_usethreadedmixing = false |
if true, the main thread does not mix sound, soundtime does not advance, and neither does snd_renderbuffer->endframe, instead the audio thread will call S_MixToBuffer as needed | |
cvar_t | snd_waterfx = {CF_CLIENT | CF_ARCHIVE, "snd_waterfx", "1", "underwater sound filter strength"} |
static cvar_t | snd_width = {CF_CLIENT | CF_ARCHIVE, "snd_width", "4", "sound output precision, in bytes - 1 = 8bit, 2 = 16bit, 4 = 32bit float"} |
cvar_t | snd_worldchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel1volume", "1", "volume multiplier of the 1st entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel2volume", "1", "volume multiplier of the 2nd entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel3volume", "1", "volume multiplier of the 3rd entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel4volume", "1", "volume multiplier of the 4th entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel5volume", "1", "volume multiplier of the 5th entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel6volume", "1", "volume multiplier of the 6th entity channel of the world entity (DEPRECATED)"} |
cvar_t | snd_worldchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel7volume", "1", "volume multiplier of the 7th entity channel of the world entity (DEPRECATED)"} |
static unsigned int | soundtime = 0 |
static float | spatialdiff |
static float | spatialfactor |
spatialmethod_t | spatialmethod |
static float | spatialmin |
static float | spatialoffset |
static float | spatialpower |
unsigned int | total_channels |
cvar_t | v_flipped |
cvar_t | volume = {CF_CLIENT | CF_ARCHIVE, "volume", "0.7", "volume of sound effects"} |
#define SND_MAX_CHANNELS 8 |
Definition at line 39 of file snd_main.c.
Referenced by S_Startup().
#define SND_MAX_SPEED 192000 |
Definition at line 35 of file snd_main.c.
Referenced by S_Startup().
#define SND_MAX_WIDTH 2 |
Definition at line 37 of file snd_main.c.
Referenced by S_Startup().
#define SND_MIN_CHANNELS 1 |
Definition at line 38 of file snd_main.c.
Referenced by S_Startup().
#define SND_MIN_SPEED 8000 |
Definition at line 34 of file snd_main.c.
Referenced by S_Startup().
#define SND_MIN_WIDTH 1 |
Definition at line 36 of file snd_main.c.
Referenced by S_Startup().
#define SND_SPEAKERLAYOUTS (sizeof(snd_speakerlayouts) / sizeof(snd_speakerlayouts[0])) |
Definition at line 49 of file snd_main.c.
Referenced by S_SetChannelLayout().
#define SWAP_LISTENERS | ( | l1, | |
l2, | |||
tmpl ) |
Definition at line 393 of file snd_main.c.
Referenced by S_SetChannelLayout().
enum spatialmethod_t |
Enumerator | |
---|---|
SPATIAL_NONE | |
SPATIAL_LOG | |
SPATIAL_POW | |
SPATIAL_THRESH |
Definition at line 161 of file snd_main.c.
Definition at line 996 of file snd_main.c.
References ambient_names, ambient_sfxs, channel_t::basespeed, channel_t::basevolume, CHANNELFLAG_FORCELOOP, channels, channel_t::flags, sfx_t::flags, i, known_sfx, channel_t::mixspeed, NULL, S_PrecacheSound(), channel_t::sfx, SFXFLAG_LEVELSOUND, and SFXFLAG_MENUSOUND.
Referenced by CL_ParseServerInfo(), and QW_CL_RequestNextDownload().
sfx_t * S_FindName | ( | const char * | name | ) |
Definition at line 895 of file snd_main.c.
References changevolume_sfx, cl, Con_Printf(), dp_strlcpy, cvar_t::integer, known_sfx, MAX_SOUNDS, Mem_Alloc, name, sfx_t::name, NULL, snd_initialized, snd_mempool, client_state_t::sound_precache, and strlen().
Referenced by S_PrecacheSound(), S_SoundLength(), VM_CL_ambientsound(), VM_CL_pointsound(), and VM_CL_sound().
Definition at line 943 of file snd_main.c.
References channels, Con_Printf(), developer_loading, i, cvar_t::integer, known_sfx, Mem_Free, NULL, S_StopChannel(), SFXFLAG_LEVELSOUND, SFXFLAG_MENUSOUND, and total_channels.
Referenced by S_Play_Common(), S_PurgeUnused(), S_StopChannel(), S_Terminate(), and S_UnloadAllSounds_f().
Definition at line 1773 of file snd_main.c.
References channels, channel_t::position, and channel_t::sfx.
Referenced by CDAudio_GetPosition(), and S_GetEntChannelPosition().
Definition at line 1790 of file snd_main.c.
References channels, channel_t::entchannel, channel_t::entnum, entnum, i, S_GetChannelPosition(), and total_channels.
Referenced by VM_getsoundtime().
Definition at line 382 of file snd_main.c.
References snd_format_t::channels, snd_ringbuffer_t::format, and snd_renderbuffer.
Referenced by XMP_LoadModFile().
Definition at line 377 of file snd_main.c.
References snd_ringbuffer_t::format, snd_renderbuffer, and snd_format_t::speed.
Referenced by S_SoundLength(), and XMP_LoadModFile().
Definition at line 387 of file snd_main.c.
References snd_ringbuffer_t::format, snd_renderbuffer, and snd_format_t::width.
Referenced by XMP_LoadModFile().
Definition at line 706 of file snd_main.c.
References _snd_mixahead, ambient_fade, ambient_level, bgmvolume, CDAudio_Init(), CF_CLIENT, channels, Cmd_AddCommand(), Cmd_NoOperation_f(), Cvar_RegisterVariable(), Cvar_SetValueQuick(), known_sfx, mastervolume, MAX_CHANNELS, MAX_DYNAMIC_CHANNELS, Mem_AllocPool, nosound, NULL, NUM_AMBIENTS, OGG_OpenLibrary(), S_PauseSound_f(), S_Play2_f(), S_Play_f(), S_PlayVol_f(), S_Restart_f(), S_SoundInfo_f(), S_SoundList_f(), S_StopAllSounds_f(), S_UnloadAllSounds_f(), simsound, snd_attenuation_decibel, snd_attenuation_exponent, snd_bufferlength, snd_channel0volume, snd_channel1volume, snd_channel2volume, snd_channel3volume, snd_channel4volume, snd_channel5volume, snd_channel6volume, snd_channel7volume, snd_channellayout, snd_channels, snd_csqcchannel0volume, snd_csqcchannel1volume, snd_csqcchannel2volume, snd_csqcchannel3volume, snd_csqcchannel4volume, snd_csqcchannel5volume, snd_csqcchannel6volume, snd_csqcchannel7volume, snd_entchannel0volume, snd_entchannel1volume, snd_entchannel2volume, snd_entchannel3volume, snd_entchannel4volume, snd_entchannel5volume, snd_entchannel6volume, snd_entchannel7volume, snd_identicalsoundrandomization_tics, snd_identicalsoundrandomization_time, snd_initialized, snd_maxchannelvolume, snd_mempool, snd_mutewhenidle, snd_playerchannel0volume, snd_playerchannel1volume, snd_playerchannel2volume, snd_playerchannel3volume, snd_playerchannel4volume, snd_playerchannel5volume, snd_playerchannel6volume, snd_playerchannel7volume, snd_precache, snd_show, snd_softclip, snd_soundradius, snd_spatialization_control, snd_spatialization_max, snd_spatialization_max_radius, snd_spatialization_min, snd_spatialization_min_radius, snd_spatialization_occlusion, snd_spatialization_power, snd_spatialization_prologic, snd_spatialization_prologic_frontangle, snd_speed, snd_startloopingsounds, snd_startnonloopingsounds, snd_staticvolume, snd_streaming, snd_streaming_length, snd_swapstereo, snd_waterfx, snd_width, snd_worldchannel0volume, snd_worldchannel1volume, snd_worldchannel2volume, snd_worldchannel3volume, snd_worldchannel4volume, snd_worldchannel5volume, snd_worldchannel6volume, snd_worldchannel7volume, Sys_CheckParm(), total_channels, volume, and XMP_OpenLibrary().
Referenced by CL_Init().
qbool S_IsSoundPrecached | ( | const sfx_t * | sfx | ) |
Definition at line 1105 of file snd_main.c.
References changevolume_sfx, and NULL.
Referenced by CL_BeginDownloads().
qbool S_LocalSound | ( | const char * | sound | ) |
Definition at line 2246 of file snd_main.c.
References S_LocalSoundEx().
Referenced by Con_MaskPrint(), M_Demo_Key(), M_Draw(), M_GameOptions_Key(), M_Keys_Key(), M_LanConfig_Key(), M_Load_Key(), M_Main_Key(), M_Menu_ModList_AdjustSliders(), M_Menu_Options_AdjustSliders(), M_Menu_Options_ColorControl_AdjustSliders(), M_Menu_Options_Effects_AdjustSliders(), M_Menu_Options_Graphics_AdjustSliders(), M_Menu_Video_AdjustSliders(), M_ModList_Key(), M_MultiPlayer_Key(), M_Options_ColorControl_Key(), M_Options_Effects_Key(), M_Options_Graphics_Key(), M_Options_Key(), M_Save_Key(), M_ServerList_Key(), M_Setup_Key(), M_SinglePlayer_Key(), M_Transfusion_Episode_Key(), M_Transfusion_Skill_Key(), M_Video_Key(), and VM_localsound().
Definition at line 2217 of file snd_main.c.
References CHANNELFLAG_LOCALSOUND, channels, cl, Con_Printf(), channel_t::flags, cvar_t::integer, nosound, S_PrecacheSound(), S_StartSound(), SFXFLAG_MENUSOUND, snd_initialized, vec3_origin, and client_state_t::viewentity.
Referenced by S_LocalSound(), and VM_localsound().
Definition at line 1895 of file snd_main.c.
References _snd_mixahead, snd_format_t::channels, cl, cls, Con_DPrint(), Con_DPrintf(), Con_Printf(), snd_ringbuffer_t::endframe, extrasoundtime, snd_ringbuffer_t::format, host, int(), cvar_t::integer, cl_soundstats_t::latency_milliseconds, max, snd_ringbuffer_t::maxframes, min, client_state_t::mtime, nosound, NULL, R_TimeReport(), host_static_t::realtime, snd_ringbuffer_t::ring, S_MixToBuffer(), simsound, snd_blocked, snd_renderbuffer, snd_starttime, snd_threaded, snd_usethreadedmixing, SndSys_GetSoundTime(), SndSys_LockRenderBuffer(), SndSys_Submit(), SndSys_UnlockRenderBuffer(), client_static_t::soundstats, soundtime, snd_format_t::speed, snd_ringbuffer_t::startframe, client_static_t::timedemo, cvar_t::value, and snd_format_t::width.
Referenced by S_Update().
Definition at line 1749 of file snd_main.c.
References CHANNELFLAG_LOCALSOUND, CHANNELFLAG_PAUSED, channels, channel_t::flags, i, NULL, S_SetChannelFlag(), channel_t::sfx, and total_channels.
Referenced by CL_ParseServerMessage(), and S_PauseSound_f().
|
static |
Definition at line 368 of file snd_main.c.
References cmd(), Cmd_Argc(), Cmd_Argv(), Con_Print(), and S_PauseGameSounds().
Referenced by S_Init().
|
static |
Definition at line 311 of file snd_main.c.
References cmd(), and S_Play_Common().
Referenced by S_Init().
|
static |
Definition at line 270 of file snd_main.c.
References CHANNELFLAG_LOCALSOUND, channels, cmd(), Cmd_Argc(), Cmd_Argv(), dp_strlcat, dp_strlcpy, channel_t::flags, i, listener_origin, MAX_QPATH, name, S_FreeSfx(), S_PrecacheSound(), and S_StartSound().
Referenced by S_Play2_f(), S_Play_f(), and S_PlayVol_f().
|
static |
Definition at line 306 of file snd_main.c.
References cmd(), and S_Play_Common().
Referenced by S_Init().
|
static |
Definition at line 1514 of file snd_main.c.
References CHANNELFLAG_FORCELOOP, channels, cls, Con_DPrintf(), Con_Printf(), channel_t::distfade, channel_t::entchannel, channel_t::entnum, entnum, channel_t::flags, flags, int(), cvar_t::integer, channel_t::origin, origin, channel_t::position, client_static_t::protocol, PROTOCOL_QUAKE, PROTOCOL_QUAKEWORLD, S_SetChannelSpeed(), S_SetChannelVolume(), S_StopChannel(), channel_t::sfx, snd_soundradius, SND_Spatialize_WithSfx(), snd_startloopingsounds, snd_startnonloopingsounds, cvar_t::value, and VectorCopy.
Referenced by S_StartSound_StartPosition_Flags(), and S_StaticSound().
|
static |
Definition at line 316 of file snd_main.c.
References cmd(), and S_Play_Common().
Referenced by S_Init().
Definition at line 1048 of file snd_main.c.
References cvar_t::integer, name, nosound, NULL, S_FindName(), S_LoadSound(), SFXFLAG_LEVELSOUND, SFXFLAG_MENUSOUND, snd_initialized, and snd_precache.
Referenced by CDAudio_Play_byName(), CL_BeginDownloads(), CL_ParseServerInfo(), CL_ParseServerMessage(), dpvsimpledecode_open(), jam_open(), LibAvW_OpenVideo(), QW_CL_RequestNextDownload(), S_ClearUsed(), S_LocalSoundEx(), S_Play_Common(), and VM_precache_sound().
Definition at line 1028 of file snd_main.c.
References known_sfx, S_FreeSfx(), SFXFLAG_LEVELSOUND, and SFXFLAG_MENUSOUND.
Referenced by CL_SignonReply().
|
static |
Definition at line 687 of file snd_main.c.
References ca_connected, cls, Con_Printf(), S_Shutdown(), S_Startup(), and client_static_t::state.
Referenced by S_Init().
Definition at line 1679 of file snd_main.c.
References CHANNELFLAG_FORCELOOP, CHANNELFLAG_FULLVOLUME, CHANNELFLAG_LOCALSOUND, CHANNELFLAG_PAUSED, channels, channel_t::flags, total_channels, and value.
Referenced by CDAudio_Pause(), CDAudio_Resume(), S_PauseGameSounds(), and S_StartSound_StartPosition_Flags().
Definition at line 395 of file snd_main.c.
References boolxor, channels, snd_format_t::channels, speakerlayout_t::channels, Con_Printf(), current_channellayout, current_channellayout_used, current_swapstereo, Cvar_SetValueQuick(), snd_ringbuffer_t::format, i, cvar_t::integer, speakerlayout_t::listeners, snd_channellayout, SND_CHANNELLAYOUT_ALSA, SND_CHANNELLAYOUT_AUTO, SND_CHANNELLAYOUT_STANDARD, snd_renderbuffer, snd_speakerlayout, SND_SPEAKERLAYOUTS, snd_speakerlayouts, snd_swapstereo, SWAP_LISTENERS, and v_flipped.
Referenced by S_Startup(), and S_Update().
Definition at line 1768 of file snd_main.c.
References channel_t::basespeed, and channels.
Referenced by S_PlaySfxOnChannel(), and S_StartSound_StartPosition_Flags().
Definition at line 1763 of file snd_main.c.
References channel_t::basevolume, and channels.
Referenced by CDAudio_SetVolume(), S_PlaySfxOnChannel(), and S_StartSound_StartPosition_Flags().
Definition at line 668 of file snd_main.c.
References CDAudio_Shutdown(), snd_ringbuffer_t::endframe, Mem_Free, NULL, oldpaintedtime, snd_ringbuffer_t::ring, simsound, snd_renderbuffer, and SndSys_Shutdown().
Referenced by S_Restart_f(), and S_Terminate().
|
static |
Definition at line 353 of file snd_main.c.
References snd_format_t::channels, Con_Print(), Con_Printf(), snd_ringbuffer_t::format, snd_ringbuffer_t::maxframes, NULL, snd_renderbuffer, snd_format_t::speed, total_channels, and snd_format_t::width.
Referenced by S_Init().
float S_SoundLength | ( | const char * | name | ) |
Definition at line 1085 of file snd_main.c.
References float, cvar_t::integer, name, NULL, S_FindName(), S_GetSoundRate(), and snd_initialized.
Referenced by VM_soundlength().
|
static |
Definition at line 321 of file snd_main.c.
References Con_Printf(), i, int(), known_sfx, NULL, SFXFLAG_MENUSOUND, SFXFLAG_STREAMED, and size.
Referenced by S_Init().
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.
Definition at line 1643 of file snd_main.c.
References CHANNELFLAG_NONE, entnum, origin, and S_StartSound_StartPosition_Flags().
Referenced by CL_ParseTempEntity(), dpvsimpledecode_open(), jam_open(), libavw_decodeframe(), S_LocalSoundEx(), S_Play_Common(), VM_CL_pointsound(), VM_CL_te_explosion(), VM_CL_te_explosion2(), VM_CL_te_explosionquad(), VM_CL_te_gunshot(), VM_CL_te_gunshotquad(), VM_CL_te_knightspike(), VM_CL_te_spike(), VM_CL_te_spikequad(), VM_CL_te_superspike(), VM_CL_te_superspikequad(), VM_CL_te_tarexplosion(), and VM_CL_te_wizspike().
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 ) |
Definition at line 1571 of file snd_main.c.
References channel_t::basespeed, ca_connected, changevolume_sfx, channels, cl, cls, channel_t::distfade, channel_t::entchannel, channel_t::entnum, entnum, fabs(), channel_t::flags, flags, i, int(), cvar_t::integer, IS_CHAN_SINGLE, lhrandom, MAX_DYNAMIC_CHANNELS, client_state_t::mtime, nosound, NULL, NUM_AMBIENTS, origin, channel_t::position, S_PlaySfxOnChannel(), S_SetChannelFlag(), S_SetChannelSpeed(), S_SetChannelVolume(), channel_t::sfx, snd_identicalsoundrandomization_tics, snd_identicalsoundrandomization_time, SND_PickChannel(), snd_renderbuffer, snd_soundradius, SND_Spatialize(), client_static_t::state, and cvar_t::value.
Referenced by CDAudio_Play_byName(), CL_ParseStartSoundPacket(), S_StartSound(), and VM_CL_sound().
Definition at line 476 of file snd_main.c.
References sys_t::argc, sys_t::argv, CDAudio_Startup(), snd_format_t::channels, Con_Print(), Con_Printf(), current_channellayout_used, Cvar_SetValueQuick(), snd_ringbuffer_t::endframe, extrasoundtime, snd_ringbuffer_t::format, host, i, cvar_t::integer, snd_ringbuffer_t::maxframes, NULL, oldpaintedtime, host_static_t::realtime, S_SetChannelLayout(), simsound, SND_CHANNELLAYOUT_AUTO, snd_channels, Snd_CreateRingBuffer(), snd_initialized, SND_MAX_CHANNELS, SND_MAX_SPEED, SND_MAX_WIDTH, SND_MIN_CHANNELS, SND_MIN_SPEED, SND_MIN_WIDTH, snd_renderbuffer, snd_speed, snd_starttime, snd_width, SndSys_Init(), soundtime, snd_format_t::speed, snd_ringbuffer_t::startframe, sys, Sys_CheckParm(), and snd_format_t::width.
Referenced by Host_Init(), and S_Restart_f().
Definition at line 1809 of file snd_main.c.
References CHANNELFLAG_FORCELOOP, channels, Con_Print(), Con_Printf(), cvar_t::integer, MAX_CHANNELS, nosound, NULL, origin, S_PlaySfxOnChannel(), snd_renderbuffer, and total_channels.
Referenced by CL_ParseStaticSound(), and VM_CL_ambientsound().
Definition at line 1710 of file snd_main.c.
References CDAudio_Stop(), channels, snd_format_t::channels, snd_ringbuffer_t::format, i, MAX_CHANNELS, MAX_DYNAMIC_CHANNELS, snd_ringbuffer_t::maxframes, NULL, NUM_AMBIENTS, snd_ringbuffer_t::ring, S_StopChannel(), simsound, snd_renderbuffer, SndSys_LockRenderBuffer(), SndSys_UnlockRenderBuffer(), total_channels, and snd_format_t::width.
Referenced by CL_ClearState(), CL_DisconnectEx(), CL_ParseServerInfo(), CL_Reconnect_f(), CL_Shutdown(), QW_CL_Changing_f(), S_StopAllSounds_f(), S_UnloadAllSounds_f(), SV_SpawnServer(), Sys_Error(), and Sys_HandleCrash().
void S_StopAllSounds_f | ( | cmd_state_t * | cmd | ) |
Definition at line 1743 of file snd_main.c.
References S_StopAllSounds().
Referenced by S_Init().
Definition at line 1648 of file snd_main.c.
References channels, channel_t::fetcher_data, NULL, S_FreeSfx(), channel_t::sfx, simsound, SndSys_LockRenderBuffer(), SndSys_UnlockRenderBuffer(), and total_channels.
Referenced by CDAudio_Stop(), dpvsimpledecode_close(), jam_close(), libavw_close(), S_FreeSfx(), S_MixToBuffer(), S_PlaySfxOnChannel(), S_StopAllSounds(), S_StopSound(), and SND_PickChannel().
Definition at line 1698 of file snd_main.c.
References channels, entnum, i, MAX_DYNAMIC_CHANNELS, and S_StopChannel().
Referenced by CL_ParseServerMessage().
Definition at line 842 of file snd_main.c.
References Cvar_SetValueQuick(), known_sfx, Mem_FreePool, NULL, OGG_CloseLibrary(), S_FreeSfx(), S_Shutdown(), snd_initialized, snd_mempool, and XMP_CloseLibrary().
Referenced by CL_Shutdown().
void S_UnloadAllSounds_f | ( | cmd_state_t * | cmd | ) |
Definition at line 864 of file snd_main.c.
References ambient_sfxs, ca_connected, cls, Con_Printf(), i, int(), known_sfx, NULL, S_FreeSfx(), S_StopAllSounds(), and client_static_t::state.
Referenced by FS_ChangeGameDirs(), and S_Init().
void S_Update | ( | const matrix4x4_t * | listenermatrix | ) |
Definition at line 2061 of file snd_main.c.
References boolxor, channels, cl, cls, Con_Printf(), current_channellayout, current_swapstereo, i, cvar_t::integer, listener_basematrix, listener_matrix, listener_origin, listener_pvs, listener_pvsbytes, speakerlayout_t::listeners, log(), Matrix4x4_Concat(), Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_Invert_Simple(), Matrix4x4_OriginFromMatrix(), max, MAX_DYNAMIC_CHANNELS, Mem_Free, cl_soundstats_t::mixedsounds, nosound, NULL, NUM_AMBIENTS, pow(), R_TimeReport(), S_PaintAndSubmit(), S_SetChannelLayout(), S_UpdateAmbientSounds(), channel_t::sfx, snd_blocked, snd_channellayout, SND_LISTENERS, snd_mempool, snd_mutewhenidle, snd_renderbuffer, snd_show, snd_spatialization_control, snd_spatialization_max, snd_spatialization_max_radius, snd_spatialization_min, snd_spatialization_min_radius, snd_spatialization_power, SND_Spatialize(), snd_speakerlayout, snd_swapstereo, client_static_t::soundstats, SPATIAL_LOG, SPATIAL_NONE, SPATIAL_POW, SPATIAL_THRESH, spatialdiff, spatialfactor, spatialmethod, spatialmin, spatialoffset, spatialpower, client_static_t::timedemo, total_channels, cl_soundstats_t::totalsounds, v_flipped, cvar_t::value, vid_activewindow, vid_hidden, channel_t::volume, client_state_t::worldmodel, and listener_t::yawangle.
Referenced by CL_Frame().
Definition at line 1836 of file snd_main.c.
References ambient_fade, ambient_level, listener_t::ambientvolume, channel_t::basevolume, channels, cl, float, i, cvar_t::integer, listener_origin, speakerlayout_t::listeners, mastervolume, max, NULL, NUM_AMBIENTS, client_state_t::oldtime, S_SetUnderwaterIntensity(), channel_t::sfx, SND_LISTENERS, snd_spatialization_prologic, snd_speakerlayout, sqrt(), client_state_t::time, cvar_t::value, channel_t::volume, volume, and client_state_t::worldmodel.
Referenced by S_Update().
Definition at line 1118 of file snd_main.c.
References CHANNELFLAG_FORCELOOP, channels, cl, CL_VM_GetViewEntity(), channel_t::entchannel, channel_t::entnum, entnum, channel_t::flags, int(), IS_CHAN_SINGLE, MAX_DYNAMIC_CHANNELS, NULL, NUM_AMBIENTS, channel_t::position, S_StopChannel(), channel_t::sfx, and client_state_t::viewentity.
Referenced by S_StartSound_StartPosition_Flags().
Definition at line 1503 of file snd_main.c.
References channel_t::sfx, and SND_Spatialize_WithSfx().
Referenced by S_StartSound_StartPosition_Flags(), and S_Update().
Definition at line 1191 of file snd_main.c.
References entity_state_t::active, listener_t::ambientvolume, channel_t::basespeed, channel_t::basevolume, bound, ca_connected, CHAN_ENGINE2CVAR, CHANNELFLAG_FULLVOLUME, CHECKPVSBIT, cl, cl_gameplayfix_soundsmovewithentities, CL_GetModelByIndex(), CL_VM_GetEntitySoundOrigin(), CL_VM_GetViewEntity(), cls, CLVM_prog, client_state_t::csqc_server2csqcentitynumber, Cvar_VariableValueOr(), cvars_all, channel_t::distfade, listener_t::dotbias, listener_t::dotscale, channel_t::entchannel, client_state_t::entities, channel_t::entnum, f, channel_t::flags, i, cvar_t::integer, intensity, listener_basematrix, listener_matrix, listener_origin, listener_pvs, listener_pvsbytes, speakerlayout_t::listeners, log(), M_PI, mastervolume, entity_render_t::matrix, Matrix4x4_OriginFromMatrix(), Matrix4x4_Transform(), max, MAX_EDICTS, client_state_t::maxclients, entity_render_t::maxs, min, entity_render_t::mins, channel_t::mixspeed, model, entity_state_t::modelindex, channel_t::origin, pow(), channel_t::prologic_invert, entity_t::render, snd_attenuation_decibel, snd_attenuation_exponent, snd_channel0volume, snd_channel1volume, snd_channel2volume, snd_channel3volume, snd_channel4volume, snd_channel5volume, snd_channel6volume, snd_channel7volume, snd_csqcchannel0volume, snd_csqcchannel1volume, snd_csqcchannel2volume, snd_csqcchannel3volume, snd_csqcchannel4volume, snd_csqcchannel5volume, snd_csqcchannel6volume, snd_csqcchannel7volume, snd_entchannel0volume, snd_entchannel1volume, snd_entchannel2volume, snd_entchannel3volume, snd_entchannel4volume, snd_entchannel5volume, snd_entchannel6volume, snd_entchannel7volume, SND_LISTENERS, snd_maxchannelvolume, snd_playerchannel0volume, snd_playerchannel1volume, snd_playerchannel2volume, snd_playerchannel3volume, snd_playerchannel4volume, snd_playerchannel5volume, snd_playerchannel6volume, snd_playerchannel7volume, snd_spatialization_occlusion, snd_spatialization_prologic, snd_spatialization_prologic_frontangle, snd_speakerlayout, snd_staticvolume, snd_worldchannel0volume, snd_worldchannel1volume, snd_worldchannel2volume, snd_worldchannel3volume, snd_worldchannel4volume, snd_worldchannel5volume, snd_worldchannel6volume, snd_worldchannel7volume, SPATIAL_LOG, SPATIAL_NONE, SPATIAL_POW, SPATIAL_THRESH, spatialdiff, spatialfactor, spatialmethod, spatialmin, spatialoffset, spatialpower, sqrt(), client_static_t::state, entity_t::state_current, va(), cvar_t::value, VectorLength, VectorMAM, VectorNormalize, VectorScale, VectorSubtract, client_state_t::viewentity, channel_t::volume, volume, and client_state_t::worldmodel.
Referenced by S_PlaySfxOnChannel(), and SND_Spatialize().
cvar_t _snd_mixahead = {CF_CLIENT | CF_ARCHIVE, "_snd_mixahead", "0.15", "how much sound to mix ahead of time"} |
Definition at line 190 of file snd_main.c.
Referenced by S_Init(), and S_PaintAndSubmit().
|
static |
Definition at line 240 of file snd_main.c.
Referenced by S_Init(), and S_UpdateAmbientSounds().
|
static |
|
static |
Definition at line 259 of file snd_main.c.
Referenced by S_ClearUsed().
Definition at line 258 of file snd_main.c.
Referenced by S_ClearUsed(), and S_UnloadAllSounds_f().
cvar_t bgmvolume = {CF_CLIENT | CF_ARCHIVE, "bgmvolume", "1", "volume of background music (such as CD music or replacement files such as sound/cdtracks/track002.ogg)"} |
Definition at line 165 of file snd_main.c.
Referenced by CDAudio_Play_byName(), CDAudio_Update(), CL_ParseServerMessage(), M_Menu_Options_AdjustSliders(), M_Options_Draw(), and S_Init().
sfx_t changevolume_sfx = {""} |
Definition at line 894 of file snd_main.c.
Referenced by S_FindName(), S_IsSoundPrecached(), and S_StartSound_StartPosition_Flags().
channel_t channels[MAX_CHANNELS] |
Definition at line 128 of file snd_main.c.
Referenced by S_ClearUsed(), S_FreeSfx(), S_GetChannelPosition(), S_GetEntChannelPosition(), S_Init(), S_LocalSoundEx(), S_MixToBuffer(), S_PauseGameSounds(), S_Play_Common(), S_PlaySfxOnChannel(), S_SetChannelFlag(), S_SetChannelLayout(), S_SetChannelSpeed(), S_SetChannelVolume(), S_StartSound_StartPosition_Flags(), S_StaticSound(), S_StopAllSounds(), S_StopChannel(), S_StopSound(), S_Update(), S_UpdateAmbientSounds(), and SND_PickChannel().
|
extern |
Definition at line 174 of file cl_parse.c.
Referenced by CL_Parse_Init(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 157 of file snd_main.c.
Referenced by S_SetChannelLayout(), and S_Update().
|
static |
Definition at line 158 of file snd_main.c.
Referenced by S_SetChannelLayout(), and S_Startup().
|
static |
Definition at line 156 of file snd_main.c.
Referenced by S_SetChannelLayout(), and S_Update().
|
static |
Definition at line 134 of file snd_main.c.
Referenced by S_PaintAndSubmit(), and S_Startup().
|
static |
Definition at line 147 of file snd_main.c.
Referenced by S_ClearUsed(), S_FindName(), S_FreeSfx(), S_Init(), S_PurgeUnused(), S_SoundList_f(), S_Terminate(), and S_UnloadAllSounds_f().
matrix4x4_t listener_basematrix |
Definition at line 140 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
matrix4x4_t listener_matrix[SND_LISTENERS] |
Definition at line 143 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
vec3_t listener_origin |
Definition at line 139 of file snd_main.c.
Referenced by S_Play_Common(), S_Update(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 141 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 142 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
cvar_t mastervolume = {CF_CLIENT | CF_ARCHIVE, "mastervolume", "0.7", "master volume"} |
Definition at line 176 of file snd_main.c.
Referenced by S_Init(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().
Definition at line 237 of file snd_main.c.
Referenced by S_Init(), S_LocalSoundEx(), S_PaintAndSubmit(), S_PrecacheSound(), S_StartSound_StartPosition_Flags(), S_StaticSound(), and S_Update().
|
static |
Definition at line 133 of file snd_main.c.
Referenced by S_Shutdown(), and S_Startup().
If simsound is true, the sound card is not initialized and no sound is submitted to it.
More generally, all arch-dependent operations are skipped or emulated. Used for isolating performance in the renderer.
Definition at line 149 of file snd_main.c.
Referenced by S_Init(), S_PaintAndSubmit(), S_Shutdown(), S_Startup(), S_StopAllSounds(), and S_StopChannel().
cvar_t snd_attenuation_decibel = {CF_CLIENT | CF_ARCHIVE, "snd_attenuation_decibel", "0", "Decibel sound attenuation per sound radius distance"} |
Definition at line 180 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_attenuation_exponent = {CF_CLIENT | CF_ARCHIVE, "snd_attenuation_exponent", "1", "Exponent of (1-radius) in sound attenuation formula"} |
Definition at line 179 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
bool snd_blocked = false |
When true, we submit silence to the audio device.
Definition at line 155 of file snd_main.c.
Referenced by Buffer_Callback(), S_PaintAndSubmit(), and S_Update().
cvar_t snd_bufferlength = {CF_CLIENT | CF_ARCHIVE, "snd_bufferlength", "20", "Desired length of the SDL2 audio buffer in milliseconds, smaller values reduce latency but can lead to underflow if the system is heavily loaded. Affects only how many sample frames are requested (which will be a power of 2 between 512 and 8192 inclusive)"} |
Definition at line 248 of file snd_main.c.
Referenced by S_Init(), and SndSys_Init().
cvar_t snd_channel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel0volume", "1", "volume multiplier of the auto-allocate entity channel"} |
Definition at line 228 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel1volume", "1", "volume multiplier of the 1st entity channel"} |
Definition at line 229 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel2volume", "1", "volume multiplier of the 2nd entity channel"} |
Definition at line 230 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel3volume", "1", "volume multiplier of the 3rd entity channel"} |
Definition at line 231 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel4volume", "1", "volume multiplier of the 4th entity channel"} |
Definition at line 232 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel5volume", "1", "volume multiplier of the 5th entity channel"} |
Definition at line 233 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel6volume", "1", "volume multiplier of the 6th entity channel"} |
Definition at line 234 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_channel7volume", "1", "volume multiplier of the 7th entity channel"} |
Definition at line 235 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_channellayout = {CF_CLIENT, "snd_channellayout", "0", "channel layout. Can be 0 (auto - snd_restart needed), 1 (standard layout), or 2 (ALSA layout)"} |
Definition at line 170 of file snd_main.c.
Referenced by S_Init(), S_SetChannelLayout(), S_Update(), and SndSys_Init().
|
static |
Definition at line 247 of file snd_main.c.
Referenced by S_Init(), and S_Startup().
cvar_t snd_csqcchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel0volume", "1", "volume multiplier of the auto-allocate entity channel CSQC entities (DEPRECATED)"} |
Definition at line 220 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel1volume", "1", "volume multiplier of the 1st entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 221 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel2volume", "1", "volume multiplier of the 2nd entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 222 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel3volume", "1", "volume multiplier of the 3rd entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 223 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel4volume", "1", "volume multiplier of the 4th entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 224 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel5volume", "1", "volume multiplier of the 5th entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 225 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel6volume", "1", "volume multiplier of the 6th entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 226 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_csqcchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_csqcchannel7volume", "1", "volume multiplier of the 7th entity channel of CSQC entities (DEPRECATED)"} |
Definition at line 227 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of regular entities (DEPRECATED)"} |
Definition at line 196 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel1volume", "1", "volume multiplier of the 1st entity channel of regular entities (DEPRECATED)"} |
Definition at line 197 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel2volume", "1", "volume multiplier of the 2nd entity channel of regular entities (DEPRECATED)"} |
Definition at line 198 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel3volume", "1", "volume multiplier of the 3rd entity channel of regular entities (DEPRECATED)"} |
Definition at line 199 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel4volume", "1", "volume multiplier of the 4th entity channel of regular entities (DEPRECATED)"} |
Definition at line 200 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel5volume", "1", "volume multiplier of the 5th entity channel of regular entities (DEPRECATED)"} |
Definition at line 201 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel6volume", "1", "volume multiplier of the 6th entity channel of regular entities (DEPRECATED)"} |
Definition at line 202 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_entchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_entchannel7volume", "1", "volume multiplier of the 7th entity channel of regular entities (DEPRECATED)"} |
Definition at line 203 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 255 of file snd_main.c.
Referenced by S_Init(), and S_StartSound_StartPosition_Flags().
|
static |
Definition at line 254 of file snd_main.c.
Referenced by S_Init(), and S_StartSound_StartPosition_Flags().
cvar_t snd_initialized = {CF_CLIENT | CF_READONLY, "snd_initialized", "0", "indicates the sound subsystem is active"} |
Definition at line 167 of file snd_main.c.
Referenced by CL_ParseServerMessage(), M_Options_Draw(), S_FindName(), S_Init(), S_LocalSoundEx(), S_PrecacheSound(), S_SoundLength(), S_Startup(), S_Terminate(), and VM_precache_sound().
cvar_t snd_maxchannelvolume = {CF_CLIENT | CF_ARCHIVE, "snd_maxchannelvolume", "10", "maximum volume of a single sound"} |
mempool_t* snd_mempool |
Definition at line 144 of file snd_main.c.
Referenced by OGG_GetSamplesFloat(), OGG_LoadVorbisFile(), S_FindName(), S_Init(), S_LoadWavFile(), S_Terminate(), S_Update(), Snd_CreateRingBuffer(), XMP_GetSamplesFloat(), and XMP_LoadModFile().
cvar_t snd_mutewhenidle = {CF_CLIENT | CF_ARCHIVE, "snd_mutewhenidle", "1", "1 disables sound output when game window is inactive, 2 disables it only when the window is minimised"} |
Definition at line 193 of file snd_main.c.
Referenced by S_Init(), and S_Update().
cvar_t snd_playerchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of player entities (DEPRECATED)"} |
Definition at line 204 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel1volume", "1", "volume multiplier of the 1st entity channel of player entities (DEPRECATED)"} |
Definition at line 205 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel2volume", "1", "volume multiplier of the 2nd entity channel of player entities (DEPRECATED)"} |
Definition at line 206 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel3volume", "1", "volume multiplier of the 3rd entity channel of player entities (DEPRECATED)"} |
Definition at line 207 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel4volume", "1", "volume multiplier of the 4th entity channel of player entities (DEPRECATED)"} |
Definition at line 208 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel5volume", "1", "volume multiplier of the 5th entity channel of player entities (DEPRECATED)"} |
Definition at line 209 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel6volume", "1", "volume multiplier of the 6th entity channel of player entities (DEPRECATED)"} |
Definition at line 210 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_playerchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_playerchannel7volume", "1", "volume multiplier of the 7th entity channel of player entities (DEPRECATED)"} |
Definition at line 211 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
snd_ringbuffer_t* snd_renderbuffer = NULL |
Definition at line 131 of file snd_main.c.
Referenced by Buffer_Callback(), S_GetSoundChannels(), S_GetSoundRate(), S_GetSoundWidth(), S_LoadSound(), S_MixToBuffer(), S_PaintAndSubmit(), S_SetChannelLayout(), S_Shutdown(), S_SoftClipPaintBuffer(), S_SoundInfo_f(), S_StartSound_StartPosition_Flags(), S_Startup(), S_StaticSound(), S_StopAllSounds(), S_Update(), SndSys_Init(), and SndSys_Shutdown().
cvar_t snd_softclip = {CF_CLIENT | CF_ARCHIVE, "snd_softclip", "0", "Use soft-clipping. Soft-clipping can make the sound more smooth if very high volume levels are used. Enable this option if the dynamic range of the loudspeakers is very low. WARNING: This feature creates distortion and should be considered a last resort."} |
Definition at line 194 of file snd_main.c.
Referenced by S_Init(), and S_SoftClipPaintBuffer().
cvar_t snd_soundradius = {CF_CLIENT | CF_ARCHIVE, "snd_soundradius", "1200", "radius of weapon sounds and other standard sound effects (monster idle noises are half this radius and flickering light noises are one third of this radius)"} |
Definition at line 178 of file snd_main.c.
Referenced by S_Init(), S_PlaySfxOnChannel(), and S_StartSound_StartPosition_Flags().
cvar_t snd_spatialization_control = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_control", "0", "enable spatialization control (headphone friendly mode)"} |
Definition at line 186 of file snd_main.c.
Referenced by S_Init(), and S_Update().
cvar_t snd_spatialization_max = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_max", "0.95", "maximum spatialization of sounds"} |
cvar_t snd_spatialization_max_radius = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_max_radius", "100", "use maximum spatialization below this radius"} |
Definition at line 182 of file snd_main.c.
Referenced by S_Init(), and S_Update().
cvar_t snd_spatialization_min = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_min", "0.70", "minimum spatializazion of sounds"} |
cvar_t snd_spatialization_min_radius = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_min_radius", "10000", "use minimum spatialization above to this radius"} |
Definition at line 181 of file snd_main.c.
Referenced by S_Init(), and S_Update().
cvar_t snd_spatialization_occlusion = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_occlusion", "1", "enable occlusion testing on spatialized sounds, which simply quiets sounds that are blocked by the world; 1 enables PVS method, 2 enables LineOfSight method, 3 enables both"} |
Definition at line 189 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_spatialization_power = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_power", "0", "exponent of the spatialization falloff curve (0: logarithmic)"} |
Definition at line 185 of file snd_main.c.
Referenced by S_Init(), and S_Update().
cvar_t snd_spatialization_prologic = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_prologic", "0", "use dolby prologic (I, II or IIx) encoding (snd_channels must be 2)"} |
Definition at line 187 of file snd_main.c.
Referenced by S_Init(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().
cvar_t snd_spatialization_prologic_frontangle = {CF_CLIENT | CF_ARCHIVE, "snd_spatialization_prologic_frontangle", "30", "the angle between the front speakers and the center speaker"} |
Definition at line 188 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
speakerlayout_t snd_speakerlayout |
Definition at line 44 of file snd_main.c.
Referenced by S_MixToBuffer(), S_SetChannelLayout(), S_Update(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 50 of file snd_main.c.
Referenced by S_SetChannelLayout().
|
static |
|
static |
Definition at line 250 of file snd_main.c.
Referenced by S_Init(), and S_PlaySfxOnChannel().
|
static |
Definition at line 251 of file snd_main.c.
Referenced by S_Init(), and S_PlaySfxOnChannel().
|
static |
Definition at line 135 of file snd_main.c.
Referenced by S_PaintAndSubmit(), and S_Startup().
cvar_t snd_staticvolume = {CF_CLIENT | CF_ARCHIVE, "snd_staticvolume", "1", "volume of ambient sound effects (such as swampy sounds at the start of e1m2)"} |
Definition at line 177 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_streaming = {CF_CLIENT | CF_ARCHIVE, "snd_streaming", "1", "enables keeping compressed ogg sound files compressed, decompressing them only as needed, otherwise they will be decompressed completely at load (may use a lot of memory); when set to 2, streaming is performed even if this would waste memory"} |
Definition at line 171 of file snd_main.c.
Referenced by OGG_LoadVorbisFile(), and S_Init().
cvar_t snd_streaming_length = {CF_CLIENT | CF_ARCHIVE, "snd_streaming_length", "1", "decompress sounds completely if they are less than this play time when snd_streaming is 1"} |
Definition at line 172 of file snd_main.c.
Referenced by OGG_LoadVorbisFile(), and S_Init().
cvar_t snd_swapstereo = {CF_CLIENT | CF_ARCHIVE, "snd_swapstereo", "0", "swaps left/right speakers for old ISA soundblaster cards"} |
Definition at line 191 of file snd_main.c.
Referenced by S_Init(), S_SetChannelLayout(), and S_Update().
enables use of snd_usethreadedmixing, provided that no sound hacks are in effect (like timedemo)
Definition at line 136 of file snd_main.c.
Referenced by S_PaintAndSubmit(), and SndSys_Init().
if true, the main thread does not mix sound, soundtime does not advance, and neither does snd_renderbuffer->endframe, instead the audio thread will call S_MixToBuffer as needed
Definition at line 137 of file snd_main.c.
Referenced by Buffer_Callback(), S_MixToBuffer(), and S_PaintAndSubmit().
cvar_t snd_waterfx = {CF_CLIENT | CF_ARCHIVE, "snd_waterfx", "1", "underwater sound filter strength"} |
|
static |
Definition at line 246 of file snd_main.c.
Referenced by S_Init(), and S_Startup().
cvar_t snd_worldchannel0volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel0volume", "1", "volume multiplier of the auto-allocate entity channel of the world entity (DEPRECATED)"} |
Definition at line 212 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel1volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel1volume", "1", "volume multiplier of the 1st entity channel of the world entity (DEPRECATED)"} |
Definition at line 213 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel2volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel2volume", "1", "volume multiplier of the 2nd entity channel of the world entity (DEPRECATED)"} |
Definition at line 214 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel3volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel3volume", "1", "volume multiplier of the 3rd entity channel of the world entity (DEPRECATED)"} |
Definition at line 215 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel4volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel4volume", "1", "volume multiplier of the 4th entity channel of the world entity (DEPRECATED)"} |
Definition at line 216 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel5volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel5volume", "1", "volume multiplier of the 5th entity channel of the world entity (DEPRECATED)"} |
Definition at line 217 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel6volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel6volume", "1", "volume multiplier of the 6th entity channel of the world entity (DEPRECATED)"} |
Definition at line 218 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
cvar_t snd_worldchannel7volume = {CF_CLIENT | CF_ARCHIVE, "snd_worldchannel7volume", "1", "volume multiplier of the 7th entity channel of the world entity (DEPRECATED)"} |
Definition at line 219 of file snd_main.c.
Referenced by S_Init(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 132 of file snd_main.c.
Referenced by S_PaintAndSubmit(), and S_Startup().
|
static |
Definition at line 160 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 160 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
spatialmethod_t spatialmethod |
Definition at line 162 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 160 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 160 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 160 of file snd_main.c.
Referenced by S_Update(), and SND_Spatialize_WithSfx().
unsigned int total_channels |
Definition at line 129 of file snd_main.c.
Referenced by S_FreeSfx(), S_GetEntChannelPosition(), S_Init(), S_MixToBuffer(), S_PauseGameSounds(), S_SetChannelFlag(), S_SoundInfo_f(), S_StaticSound(), S_StopAllSounds(), S_StopChannel(), and S_Update().
|
extern |
Definition at line 20 of file gl_backend.c.
Referenced by gl_backend_init(), R_SetViewport(), R_Viewport_InitOrtho3D(), R_Viewport_InitPerspective(), R_Viewport_InitPerspectiveInfinite(), S_SetChannelLayout(), and S_Update().
cvar_t volume = {CF_CLIENT | CF_ARCHIVE, "volume", "0.7", "volume of sound effects"} |
Definition at line 166 of file snd_main.c.
Referenced by M_Menu_Options_AdjustSliders(), M_Options_Draw(), S_Init(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().