about summary refs log tree commit homepage
path: root/test/test_source_sox.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-04 09:51:41 +0000
committerEric Wong <e@80x24.org>2016-01-04 09:51:41 +0000
commit83ab812ea560f5f327ea2df00f8f0292d96b1795 (patch)
treee24674b974fc184368a6f1bf8711b5ab98a3352e /test/test_source_sox.rb
parent176e3cf0d82e24b5f019a4ed0ac4f56f62edd5e6 (diff)
downloaddtas-83ab812ea560f5f327ea2df00f8f0292d96b1795.tar.gz
It is possible for a file to only have one of the ReplayGain
tags we need and not the previous-required REPLAYGAIN_TRACK_GAIN
tag.  So do not reject the entire series of tags if a file has
the one we want.
Diffstat (limited to 'test/test_source_sox.rb')
-rw-r--r--test/test_source_sox.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_source_sox.rb b/test/test_source_sox.rb
index ce4fe93..05ea9a8 100644
--- a/test/test_source_sox.rb
+++ b/test/test_source_sox.rb
@@ -35,7 +35,7 @@ class TestSource < Testcase
     x(%W(metaflac --set-tag=FOO=BAR #{tmp.path}))
     x(%W(metaflac --add-replay-gain #{tmp.path}))
     assert_equal source.comments["FOO"], "BAR"
-    rg = source.replaygain
+    rg = source.replaygain('track_gain')
     assert_kind_of DTAS::ReplayGain, rg
     assert_in_delta 0.0, rg.track_peak.to_f, 0.00000001
     assert_in_delta 0.0, rg.album_peak.to_f, 0.00000001
@@ -62,7 +62,7 @@ class TestSource < Testcase
       end
     end
 
-    rg = source.replaygain
+    rg = source.replaygain('track_gain')
     assert_kind_of DTAS::ReplayGain, rg
     assert_in_delta 0.0, rg.track_peak.to_f, 0.00000001
     assert_in_delta 0.0, rg.album_peak.to_f, 0.00000001