diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-17 06:13:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-17 06:13:33 +0000 |
commit | 605b8403bec9607b2aa818ca9e1daeea607e89fa (patch) | |
tree | 87125cd0bc710879572ad7eb70f60f6efae9f876 /test | |
parent | 1c77d0d7c414d43f751eeb308a1a47d87de6cc1e (diff) | |
download | dtas-605b8403bec9607b2aa818ca9e1daeea607e89fa.tar.gz |
Only lightly tested, but this should give us some idea of where we'll be going...
Diffstat (limited to 'test')
-rw-r--r-- | test/test_trimfx.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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 |