![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | wavinfo_t |
Functions | |
static void | FindChunk (const char *name) |
static void | FindNextChunk (const char *name) |
static int | GetLittleLong (void) |
static short | GetLittleShort (void) |
static wavinfo_t | GetWavinfo (char *name, unsigned char *wav, int wavlength) |
qbool | S_LoadWavFile (const char *filename, sfx_t *sfx) |
static void | WAV_FreeSfx (sfx_t *sfx) |
static void | WAV_GetSamplesFloat (channel_t *ch, sfx_t *sfx, int firstsampleframe, int numsampleframes, float *outsamplesfloat) |
Variables | |
static unsigned char * | data_p |
static int | iff_chunk_len |
static unsigned char * | iff_data |
static unsigned char * | iff_end |
static unsigned char * | last_chunk |
const snd_fetcher_t | wav_fetcher = { WAV_GetSamplesFloat, NULL, WAV_FreeSfx } |
|
static |
Definition at line 100 of file snd_wav.c.
References FindNextChunk(), iff_data, last_chunk, and name.
Referenced by GetWavinfo().
|
static |
Definition at line 68 of file snd_wav.c.
References data_p, GetLittleLong(), iff_chunk_len, iff_end, last_chunk, name, and NULL.
Referenced by FindChunk(), and GetWavinfo().
Definition at line 58 of file snd_wav.c.
References BuffLittleLong(), and data_p.
Referenced by FindNextChunk(), and GetWavinfo().
|
static |
Definition at line 48 of file snd_wav.c.
References BuffLittleShort(), and data_p.
Referenced by GetWavinfo().
Definition at line 131 of file snd_wav.c.
References wavinfo_t::channels, Con_Print(), Con_Printf(), data_p, wavinfo_t::dataofs, FindChunk(), FindNextChunk(), format, GetLittleLong(), GetLittleShort(), i, iff_data, iff_end, wavinfo_t::loopstart, name, wavinfo_t::rate, samples, wavinfo_t::samples, and wavinfo_t::width.
Referenced by S_LoadWavFile().
qbool S_LoadWavFile | ( | const char * | filename, |
sfx_t * | sfx ) |
Definition at line 268 of file snd_wav.c.
References wavinfo_t::channels, Con_Printf(), data, wavinfo_t::dataofs, developer_loading, FS_LoadFile(), GetWavinfo(), i, cvar_t::integer, wavinfo_t::loopstart, Mem_Alloc, mem_bigendian, Mem_Free, min, NULL, wavinfo_t::rate, wavinfo_t::samples, snd_mempool, wav_fetcher, and wavinfo_t::width.
Referenced by S_LoadSound().
|
static |
|
static |
|
static |
Definition at line 41 of file snd_wav.c.
Referenced by FindNextChunk(), GetLittleLong(), GetLittleShort(), and GetWavinfo().
|
static |
Definition at line 45 of file snd_wav.c.
Referenced by FindNextChunk().
|
static |
Definition at line 44 of file snd_wav.c.
Referenced by FindChunk(), and GetWavinfo().
|
static |
Definition at line 42 of file snd_wav.c.
Referenced by FindNextChunk(), and GetWavinfo().
|
static |
Definition at line 43 of file snd_wav.c.
Referenced by FindChunk(), and FindNextChunk().
const snd_fetcher_t wav_fetcher = { WAV_GetSamplesFloat, NULL, WAV_FreeSfx } |
Definition at line 260 of file snd_wav.c.
Referenced by OGG_LoadVorbisFile(), and S_LoadWavFile().