about summary refs log tree commit homepage
path: root/lib/dtas/rg_state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/rg_state.rb')
-rw-r--r--lib/dtas/rg_state.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/rg_state.rb b/lib/dtas/rg_state.rb
index 883515d..d6f8d81 100644
--- a/lib/dtas/rg_state.rb
+++ b/lib/dtas/rg_state.rb
@@ -111,8 +111,8 @@ class DTAS::RGState # :nodoc:
     unless @mode
       return @volume == 1.0 ? nil : to_sox_gain(vol_db)
     end
-    rg = source.replaygain or
-      return rg_fallback_effect("ReplayGain tags missing")
+    rg = source.replaygain(@mode) or
+      return rg_fallback_effect("ReplayGain tags missing for #@mode")
     val = rg.__send__(@mode)
     if ! val && @fallback_track && @mode =~ /\Aalbum_(\w+)/
       tag = "track_#$1"