Revert "BugFix : Change peak value to normalize audio file with fallback gain"
authorTim-Philipp Müller <tim@centricular.com>
Tue, 15 May 2018 09:35:09 +0000 (10:35 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 15 May 2018 09:35:09 +0000 (10:35 +0100)
This reverts commit 36e49fd6f872f0b3f33083107a55fb7f671a47d0.

Breaks unit test, someone needs to investigate if it's the
patch's fault or if the test needs adjusting/updating.

https://bugzilla.gnome.org/show_bug.cgi?id=673970

gst/replaygain/gstrgvolume.c

index 1326784..7c4f281 100644 (file)
@@ -645,7 +645,7 @@ gst_rg_volume_determine_gain (GstRgVolume * self, gdouble * target_gain,
 
     GST_DEBUG_OBJECT (self, "using fallback gain");
     gain = self->fallback_gain;
-    peak = 0.000001;
+    peak = 1.0;
 
   } else if ((self->album_mode && self->has_album_gain)
       || (!self->album_mode && !self->has_track_gain)) {