]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mem.c
fixed missing newline at end of some stufftext (breaking curl downloads a little)
[xonotic/darkplaces.git] / snd_mem.c
index 108aa7795599f903ff15fcd7991c0bd3111ed3c4..adb296ff2ddfdfa74723d54597d9912e9a7c30cc 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -319,6 +319,9 @@ qboolean S_LoadSound (sfx_t *sfx, qboolean complain)
        if (snd_renderbuffer == NULL)
                return false;
 
+       // Initialize volume peak to 0; if ReplayGain is supported, the loader will change this away
+       sfx->volume_peak = 0.0;
+
        // LordHavoc: if the sound filename does not begin with sound/, try adding it
        if (strncasecmp(sfx->name, "sound/", 6))
        {
@@ -326,7 +329,7 @@ qboolean S_LoadSound (sfx_t *sfx, qboolean complain)
                if (len < 0)
                {
                        // name too long
-                       Con_Printf("S_LoadSound: name \"%s\" is too long\n", sfx->name);
+                       Con_DPrintf("S_LoadSound: name \"%s\" is too long\n", sfx->name);
                        return false;
                }
                if (S_LoadWavFile (namebuffer, sfx))
@@ -342,7 +345,7 @@ qboolean S_LoadSound (sfx_t *sfx, qboolean complain)
        if (len < 0)
        {
                // name too long
-               Con_Printf("S_LoadSound: name \"%s\" is too long\n", sfx->name);
+               Con_DPrintf("S_LoadSound: name \"%s\" is too long\n", sfx->name);
                return false;
        }
        if (S_LoadWavFile (namebuffer, sfx))
@@ -355,6 +358,6 @@ qboolean S_LoadSound (sfx_t *sfx, qboolean complain)
        // Can't load the sound!
        sfx->flags |= SFXFLAG_FILEMISSING;
        if (complain)
-               Con_Printf("S_LoadSound: Couldn't load \"%s\"\n", sfx->name);
+               Con_DPrintf("S_LoadSound: Couldn't load \"%s\"\n", sfx->name);
        return false;
 }