diff options
author | Max Kellermann <max@musicpd.org> | 2019-06-17 22:20:28 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-06-17 22:35:00 +0200 |
commit | 28e07e900f397bb2146a02b166cbc00e8ad40a5d (patch) | |
tree | d9342a89eea1fe522a9087cfcd4cdd37db1677ca /test/test_pcm_export.cxx | |
parent | c75dc4a6474ea31a841fe3bffca51188a467de24 (diff) |
pcm/Export: convert the DSD bools to an enum
These options are exclusive.
Diffstat (limited to 'test/test_pcm_export.cxx')
-rw-r--r-- | test/test_pcm_export.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pcm_export.cxx b/test/test_pcm_export.cxx index 9411bc580..67df4a2b8 100644 --- a/test/test_pcm_export.cxx +++ b/test/test_pcm_export.cxx @@ -141,7 +141,7 @@ TEST(PcmTest, ExportDsdU16) }; PcmExport::Params params; - params.dsd_u16 = true; + params.dsd_mode = PcmExport::DsdMode::U16; EXPECT_EQ(params.CalcOutputSampleRate(705600u), 352800u); EXPECT_EQ(params.CalcInputSampleRate(352800u), 705600u); @@ -171,7 +171,7 @@ TEST(PcmTest, ExportDsdU32) }; PcmExport::Params params; - params.dsd_u32 = true; + params.dsd_mode = PcmExport::DsdMode::U32; EXPECT_EQ(params.CalcOutputSampleRate(705600u), 176400u); EXPECT_EQ(params.CalcInputSampleRate(176400u), 705600u); @@ -199,7 +199,7 @@ TEST(PcmTest, ExportDop) }; PcmExport::Params params; - params.dop = true; + params.dsd_mode = PcmExport::DsdMode::DOP; EXPECT_EQ(params.CalcOutputSampleRate(705600u), 352800u); EXPECT_EQ(params.CalcInputSampleRate(352800u), 705600u); |