DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
sfx_t Struct Reference

#include <snd_main.h>

+ Collaboration diagram for sfx_t:

Data Fields

const snd_fetcher_t * fetcher
 
voidfetcher_data
 Per-sfx data for the sound fetching functions.
 
unsigned int flags
 cf SFXFLAG_* defines
 
snd_format_t format
 format describing the audio data that fetcher->getsamplesfloat will return
 
unsigned int loopstart
 in sample frames. equals total_length if not looped
 
size_t memsize
 total memory used (including struct sfx_s and fetcher data)
 
char name [MAX_QPATH]
 
struct sfx_snext
 
unsigned int total_length
 in sample frames
 
float volume_mult
 for replay gain (multiplier to apply)
 
float volume_peak
 for replay gain (highest peak); if set to 0, ReplayGain isn't supported
 

Detailed Description

Definition at line 66 of file snd_main.h.

Field Documentation

◆ fetcher

const snd_fetcher_t* sfx_t::fetcher

Definition at line 76 of file snd_main.h.

◆ fetcher_data

void* sfx_t::fetcher_data

Per-sfx data for the sound fetching functions.

Definition at line 77 of file snd_main.h.

◆ flags

unsigned int sfx_t::flags

cf SFXFLAG_* defines

Definition at line 73 of file snd_main.h.

Referenced by S_ClearUsed().

◆ format

snd_format_t sfx_t::format

format describing the audio data that fetcher->getsamplesfloat will return

Definition at line 72 of file snd_main.h.

◆ loopstart

unsigned int sfx_t::loopstart

in sample frames. equals total_length if not looped

Definition at line 74 of file snd_main.h.

◆ memsize

size_t sfx_t::memsize

total memory used (including struct sfx_s and fetcher data)

Definition at line 70 of file snd_main.h.

◆ name

char sfx_t::name[MAX_QPATH]

Definition at line 68 of file snd_main.h.

Referenced by CL_SoundIndexList_f(), and S_FindName().

◆ next

struct sfx_s* sfx_t::next

Definition at line 69 of file snd_main.h.

◆ total_length

unsigned int sfx_t::total_length

in sample frames

Definition at line 75 of file snd_main.h.

◆ volume_mult

float sfx_t::volume_mult

for replay gain (multiplier to apply)

Definition at line 79 of file snd_main.h.

◆ volume_peak

float sfx_t::volume_peak

for replay gain (highest peak); if set to 0, ReplayGain isn't supported

Definition at line 80 of file snd_main.h.


The documentation for this struct was generated from the following file: