diff options
-rw-r--r-- | lib/dtas/rg_state.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dtas/rg_state.rb b/lib/dtas/rg_state.rb index a6c56f5..1cf97c7 100644 --- a/lib/dtas/rg_state.rb +++ b/lib/dtas/rg_state.rb @@ -74,8 +74,10 @@ class DTAS::RGState # :nodoc: # tag slips into the queue def rg_fallback_effect(reason) @fallback_gain or return + val = @fallback_gain + @preamp + return if val.abs < @gain_threshold warn(reason) if $DEBUG - "vol #{@fallback_gain + @preamp}dB" + "vol #{val}dB" end # returns an array (for command-line argument) for the effect needed |