![]() |
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, 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, count, channel_t::flags, floor(), 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, total_channels, and channel_t::volume.
Referenced by Buffer_Callback(), and S_PaintAndSubmit().
Definition at line 320 of file snd_mix.c.
References bound, cl, log(), max, min, snd_waterfx, target, and underwater.
Referenced by S_UpdateAmbientSounds().
|
static |
Definition at line 55 of file snd_mix.c.
References max, portable_sampleframe_t::sample, snd_renderbuffer, snd_softclip, SOFTCLIP, and width.
Referenced by S_MixToBuffer().
Definition at line 338 of file snd_mix.c.
References paintbuffer, 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(), SCR_CaptureVideo_Ogg_SoundFrame(), and SCR_CaptureVideo_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().