]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_ogg.c
fix errors and warnings in MSVC when compiling as C++
[xonotic/darkplaces.git] / snd_ogg.c
index 24752730b09bf54c0812445c3159bee29be675e4..17ddc1b833d8537696a36fe26066dc4327bc61dc 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -792,7 +792,7 @@ qboolean OGG_LoadVorbisFile (const char *filename, sfx_t *sfx)
 
        if(peak)
        {
 
        if(peak)
        {
-               sfx->volume_mult = min(1 / peak, exp(gaindb * 0.05 * log(10)));
+               sfx->volume_mult = min(1.0f / peak, exp(gaindb * 0.05f * log(10.0f)));
                sfx->volume_peak = peak;
                if (developer_loading.integer >= 2)
                        Con_Printf ("Ogg sound file \"%s\" uses ReplayGain (gain %f, peak %f)\n", filename, sfx->volume_mult, sfx->volume_peak);
                sfx->volume_peak = peak;
                if (developer_loading.integer >= 2)
                        Con_Printf ("Ogg sound file \"%s\" uses ReplayGain (gain %f, peak %f)\n", filename, sfx->volume_mult, sfx->volume_peak);