]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.h
ReplayGain support for OggVorbis files (mostly useful for fake CD tracks)
[xonotic/darkplaces.git] / snd_main.h
index 3b53b62a90ffe15036c37b3bc93b41746bb3e5db..5efc871977c20bc18213ad888a14013db6d66741 100644 (file)
@@ -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