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))
{
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))
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))
// 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;
}