pcm/Export: halve the sample rate for DoP

Move this sample rate fixup from the ALSA output plugin to PcmExport,
where it belongs.
This commit is contained in:
Max Kellermann
2017-01-11 00:11:43 +01:00
parent 2b43ceb6c6
commit 9c4df66925
3 changed files with 13 additions and 2 deletions

View File

@@ -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);