diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-11 00:11:43 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-11 10:33:23 +0100 |
commit | 9c4df669253e1b01f20ff4d496c15a8bed4a00ac (patch) | |
tree | be9fda03d546c7555ad6d9ccff2ccab2ebbfa4e1 /test | |
parent | 2b43ceb6c68e93feff830d2946abc8dc8f069421 (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.cxx | 3 |
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); |