From 605b8403bec9607b2aa818ca9e1daeea607e89fa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Oct 2013 06:13:33 +0000 Subject: trimfx: flesh out parsing of commands Only lightly tested, but this should give us some idea of where we'll be going... --- test/test_trimfx.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/test_trimfx.rb') diff --git a/test/test_trimfx.rb b/test/test_trimfx.rb index 0321e3c..0ef7264 100644 --- a/test/test_trimfx.rb +++ b/test/test_trimfx.rb @@ -39,7 +39,12 @@ class TestTrimFX < Testcase tfx = DTAS::TrimFX.new(%w(trim 1 0.5)) assert_equal %w(trim 44100s 22050s), tfx.to_sox_arg(DTAS::Format.new) - tfx = DTAS::TrimFX.new(%w(trim 1 foo bar)) + tfx = DTAS::TrimFX.new(%w(trim 1 sox vol -1dB)) assert_equal %w(trim 44100s), tfx.to_sox_arg(DTAS::Format.new) end + + def test_tfx_effects + tfx = DTAS::TrimFX.new(%w(trim 1 sox vol -1dB)) + assert_equal %w(sox $SOXIN $SOXOUT $TRIMFX vol -1dB $FADEFX), tfx.cmd + end end -- cgit v1.2.3-24-ge0c7