about summary refs log tree commit homepage
path: root/test/test_format.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-28 06:50:04 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-28 07:10:53 +0000
commit77cbb5e71e466749f4966ef0caca6a5077ad72c9 (patch)
treeab5112f6a538e9bab91b0bbe6d5b7c1bceb819b2 /test/test_format.rb
parent2118e3aa78ebbd91b9d10ec524186820cbfa9c50 (diff)
downloaddtas-77cbb5e71e466749f4966ef0caca6a5077ad72c9.tar.gz
This may be used to avoid automatic:

* resampling (rate)
* down/upmixing (channel)
* dither/truncation (bits)

Using any bypass mode means we can no longer guarantee gapless
playback for audio collections where rate, channel, or bits vary.
This can however be useful when CPU usage is too high.  This may
also be useful in audio engineering situations.
Diffstat (limited to 'test/test_format.rb')
-rw-r--r--test/test_format.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_format.rb b/test/test_format.rb
index f251e6b..0441d9a 100644
--- a/test/test_format.rb
+++ b/test/test_format.rb
@@ -12,6 +12,11 @@ class TestFormat < Testcase
     assert_equal({}, hash)
   end
 
+  def test_equal
+    fmt = DTAS::Format.new
+    assert_equal fmt, fmt.dup
+  end
+
   def test_nonstandard
     fmt = DTAS::Format.new
     fmt.type = "s16"