Commit f3d67115 authored by Max Kellermann's avatar Max Kellermann

output/wasapi: check ENABLE_DSD before setting dsd_mode

parent ee6603ed
...@@ -575,8 +575,8 @@ WasapiOutput::DoOpen(AudioFormat &audio_format) ...@@ -575,8 +575,8 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
#endif #endif
if (require_export) { if (require_export) {
PcmExport::Params params; PcmExport::Params params;
params.dsd_mode = PcmExport::DsdMode::NONE;
#ifdef ENABLE_DSD #ifdef ENABLE_DSD
params.dsd_mode = PcmExport::DsdMode::NONE;
if (audio_format.format == SampleFormat::DSD) { if (audio_format.format == SampleFormat::DSD) {
params.dsd_mode = PcmExport::DsdMode::DOP; params.dsd_mode = PcmExport::DsdMode::DOP;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment