X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_main.h;h=5efc871977c20bc18213ad888a14013db6d66741;hb=ad42d0717e6cd0268e6e4cd25e2373353dee6c35;hp=2b061053cbb15b721bc76e0f69be59605247e567;hpb=8256e6f5cf262b68a5e1e59bb3545393df001126;p=xonotic%2Fdarkplaces.git diff --git a/snd_main.h b/snd_main.h index 2b061053..5efc8719 100644 --- a/snd_main.h +++ b/snd_main.h @@ -75,6 +75,9 @@ struct sfx_s unsigned int total_length; // in sample frames const snd_fetcher_t *fetcher; void *fetcher_data; // Per-sfx data for the sound fetching functions + + 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 }; // maximum supported speakers constant @@ -96,9 +99,9 @@ typedef struct channel_s // Sound fetching functions // "start" is both an input and output parameter: it returns the actual start time of the sound buffer -typedef const snd_buffer_t* (*snd_fetcher_getsb_t) (channel_t* ch, unsigned int *start, unsigned int nbsampleframes); -typedef void (*snd_fetcher_endsb_t) (channel_t* ch); -typedef void (*snd_fetcher_free_t) (sfx_t* sfx); +typedef const snd_buffer_t* (*snd_fetcher_getsb_t) (void *sfxfetcher, void **chfetcherpointer, unsigned int *start, unsigned int nbsampleframes); +typedef void (*snd_fetcher_endsb_t) (void *chfetcherdata); +typedef void (*snd_fetcher_free_t) (void *sfxfetcherdata); typedef const snd_format_t* (*snd_fetcher_getfmt_t) (sfx_t* sfx); struct snd_fetcher_s {