summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-11 00:11:43 +0100
committerMax Kellermann <max@musicpd.org>2017-01-11 10:33:23 +0100
commit9c4df669253e1b01f20ff4d496c15a8bed4a00ac (patch)
treebe9fda03d546c7555ad6d9ccff2ccab2ebbfa4e1 /test
parent2b43ceb6c68e93feff830d2946abc8dc8f069421 (diff)
pcm/Export: halve the sample rate for DoP
Move this sample rate fixup from the ALSA output plugin to PcmExport, where it belongs.
Diffstat (limited to 'test')
-rw-r--r--test/test_pcm_export.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_pcm_export.cxx b/test/test_pcm_export.cxx
index 5dded1367..3817b6cf1 100644
--- a/test/test_pcm_export.cxx
+++ b/test/test_pcm_export.cxx
@@ -175,6 +175,9 @@ PcmExportTest::TestDop()
PcmExport::Params params;
params.dop = true;
+ CPPUNIT_ASSERT_EQUAL(params.CalcOutputSampleRate(705600u), 176400u);
+ CPPUNIT_ASSERT_EQUAL(params.CalcInputSampleRate(176400u), 705600u);
+
PcmExport e;
e.Open(SampleFormat::DSD, 2, params);