![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "darkplaces.h"
#include "snd_main.h"
#include "snd_ogg.h"
#include "snd_wav.h"
#include "sound.h"
Go to the source code of this file.
Functions | |
qbool | S_LoadSound (sfx_t *sfx, qbool complain) |
void | SCR_PopLoadingScreen (qbool) |
void | SCR_PushLoadingScreen (const char *, float) |
snd_ringbuffer_t * | Snd_CreateRingBuffer (const snd_format_t *format, unsigned int sampleframes, void *buffer) |
If "buffer" is NULL, the function allocates one buffer of "sampleframes" sample frames itself (if "sampleframes" is 0, the function chooses the size). | |
Definition at line 87 of file snd_mem.c.
References CON_ERROR, Con_Printf(), developer_loading, dpsnprintf(), cvar_t::integer, MAX_QPATH, NULL, OGG_LoadVorbisFile(), S_LoadWavFile(), SCR_PopLoadingScreen(), SCR_PushLoadingScreen(), SFXFLAG_FILEMISSING, snd_renderbuffer, strlen(), and XMP_LoadModFile().
Definition at line 1899 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_len, loadingscreenstack_t::absolute_loading_amount_min, CL_UpdateScreen(), Con_DPrintf(), loadingscreenstack, loadingscreenstack_t::prev, scr_loading, and Z_Free.
Referenced by CL_BeginDownloads(), Mod_LoadModel(), Mod_Reload(), mod_start(), S_LoadSound(), and SCR_ClearLoadingScreen().
Definition at line 1873 of file cl_screen.c.
References loadingscreenstack_t::absolute_loading_amount_len, loadingscreenstack_t::absolute_loading_amount_min, CL_UpdateScreen(), dp_strlcpy, loadingscreenstack, loadingscreenstack_t::msg, loadingscreenstack_t::prev, loadingscreenstack_t::relative_completion, scr_loading, and Z_Malloc.
Referenced by CL_BeginDownloads(), Mod_LoadModel(), Mod_Reload(), mod_start(), and S_LoadSound().
snd_ringbuffer_t * Snd_CreateRingBuffer | ( | const snd_format_t * | format, |
unsigned int | sampleframes, | ||
void * | buffer ) |
If "buffer" is NULL, the function allocates one buffer of "sampleframes" sample frames itself (if "sampleframes" is 0, the function chooses the size).
Definition at line 43 of file snd_mem.c.
References buffer, format, snd_ringbuffer_t::format, snd_ringbuffer_t::maxframes, Mem_Alloc, NULL, snd_ringbuffer_t::ring, and snd_mempool.
Referenced by S_Startup(), and SndSys_Init().