![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | S_FETCHBUFFERSIZE 4096 |
#define | SOFTCLIP(x) |
Functions | |
static void | S_ConvertPaintBuffer (portable_sampleframe_t *painted_ptr, void *rb_ptr, int nbframes, int width, int nchannels) |
void | S_MixToBuffer (void *stream, unsigned int bufferframes) |
void | S_SetUnderwaterIntensity (void) |
static void | S_SoftClipPaintBuffer (portable_sampleframe_t *painted_ptr, int nbframes, int width, int nchannels) |
static void | S_UnderwaterFilter (int endtime) |
Variables | ||
static portable_sampleframe_t | paintbuffer [PAINTBUFFER_SIZE] | |
cvar_t | snd_softclip | |
speakerlayout_t | snd_speakerlayout | |
struct { | ||
float accum [SND_LISTENERS] | ||
float alpha | ||
float intensity | ||
} | underwater = {0.f, 1.f, {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}} | |
#define S_FETCHBUFFERSIZE 4096 |
Referenced by S_MixToBuffer().
#define SOFTCLIP | ( | x | ) |
Referenced by S_SoftClipPaintBuffer().
|
static |
Definition at line 129 of file snd_mix.c.
References bound, i, int(), portable_sampleframe_t::sample, and width.
Referenced by S_MixToBuffer().
Definition at line 369 of file snd_mix.c.
References bound, CHANNELFLAG_FORCELOOP, CHANNELFLAG_PAUSED, channels, snd_format_t::channels, speakerlayout_t::channels, count, channel_t::flags, floor(), snd_ringbuffer_t::format, i, int(), min, channel_t::mixspeed, NULL, paintbuffer, PAINTBUFFER_SIZE, channel_t::position, channel_t::prologic_invert, S_ConvertPaintBuffer(), S_FETCHBUFFERSIZE, S_LoadSound(), S_SoftClipPaintBuffer(), S_StopChannel(), S_UnderwaterFilter(), portable_sampleframe_t::sample, channel_t::sfx, SND_LISTENERS, snd_renderbuffer, snd_speakerlayout, snd_usethreadedmixing, snd_format_t::speed, total_channels, channel_t::volume, and snd_format_t::width.
Referenced by Buffer_Callback(), and S_PaintAndSubmit().
Definition at line 320 of file snd_mix.c.
References bound, cl, log(), max, min, client_state_t::realframetime, snd_waterfx, target, underwater, cvar_t::value, and client_state_t::view_underwater.
Referenced by S_UpdateAmbientSounds().
|
static |
Definition at line 55 of file snd_mix.c.
References snd_ringbuffer_t::format, i, cvar_t::integer, max, portable_sampleframe_t::sample, snd_renderbuffer, snd_softclip, SOFTCLIP, snd_format_t::speed, and width.
Referenced by S_MixToBuffer().
Definition at line 338 of file snd_mix.c.
References i, paintbuffer, portable_sampleframe_t::sample, SND_LISTENERS, and underwater.
Referenced by S_MixToBuffer().
float accum[SND_LISTENERS] |
float intensity |
Definition at line 314 of file snd_mix.c.
Referenced by CL_Beams_SetupBuiltinTexture(), Mod_GenerateLightmaps_LightPoint(), Mod_GenerateLightmaps_SamplePoint(), R_BuildNormalizationCube(), R_CompleteLightPoint(), R_Shadow_BounceGrid_Slice(), R_Shadow_DrawLightSprite_TransparentCallback(), R_Shadow_MakeTextures(), R_Shadow_MakeTextures_SamplePoint(), and SND_Spatialize_WithSfx().
|
static |
Definition at line 26 of file snd_mix.c.
Referenced by S_MixToBuffer(), S_UnderwaterFilter(), SCR_CaptureVideo_Avi_SoundFrame(), and SCR_CaptureVideo_Ogg_SoundFrame().
|
extern |
Definition at line 53 of file snd_mix.c.
Referenced by S_Init(), and S_SoftClipPaintBuffer().
|
extern |
Definition at line 44 of file snd_main.c.
Referenced by S_MixToBuffer(), S_SetChannelLayout(), S_Update(), S_UpdateAmbientSounds(), and SND_Spatialize_WithSfx().
struct { ... } underwater |
Referenced by CL_NewParticlesFromEffectinfo(), S_SetUnderwaterIntensity(), and S_UnderwaterFilter().