about summary refs log tree commit homepage
path: root/test/test_rg_state.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-06 10:48:39 +0000
committerEric Wong <e@80x24.org>2017-01-06 11:12:53 +0000
commitbe14891fd17aa9c4c8e8b18c6c761c79cac99b05 (patch)
tree57322611ab01021ee37a3ca745164ffe296b1ec5 /test/test_rg_state.rb
parentee92073d8d2d48eb7f070a8542430a7d5177e6bd (diff)
downloaddtas-be14891fd17aa9c4c8e8b18c6c761c79cac99b05.tar.gz
Seeing tiny (or zero) values for the "gain" effect is an eyesore
in process table output, and a waste of CPU cycles in sox.  So
stop using the "gain" effect for imperceptible changes in volume.

While we're at it, remove the pointless knobs for setting this,
too.  They were never documented and I doubt anybody would want
to tweak them at runtime.
Diffstat (limited to 'test/test_rg_state.rb')
-rw-r--r--test/test_rg_state.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_rg_state.rb b/test/test_rg_state.rb
index 3a84216..59061a2 100644
--- a/test/test_rg_state.rb
+++ b/test/test_rg_state.rb
@@ -20,6 +20,12 @@ class TestRGState < Testcase
     assert_equal({"preamp" => 0.666}, rg.to_hsh)
   end
 
+  def test_rg_vol_norm
+    rg = DTAS::RGState.new
+    assert_nil rg.rg_vol_norm(0.999999999)
+    assert_match(%r{\Again 0.827}, rg.rg_vol_norm(0.9))
+  end
+
   def test_mode_set
     rg = DTAS::RGState.new
     orig = rg.mode