From 77cbb5e71e466749f4966ef0caca6a5077ad72c9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Sep 2013 06:50:04 +0000 Subject: player: support bypass for rate, bits, channel 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. --- test/test_format.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_format.rb') 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" -- cgit v1.2.3-24-ge0c7