lib/dtas/rg_state.rb in dtas-0.19.0 vs lib/dtas/rg_state.rb in dtas-0.20.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org>
+# Copyright (C) all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
# frozen_string_literal: true
#
# provides support for generating appropriate effects for ReplayGain
# MAYBE: account for non-standard reference loudness (89.0 dB is standard)
@@ -70,10 +70,10 @@
case val.infinite?
when -1 then return 'gain -192'
when 1 then return 'gain 192'
else
val.abs <= 0.00000001 and return
- DTAS.dedupe_str(sprintf('gain %0.8f', val))
+ -sprintf('gain %0.8f', val)
end
end
# returns a dB argument to the "gain" effect, nil if nothing found
def rg_vol_gain(val)