output/wasapi: check ENABLE_DSD before setting dsd_mode

This commit is contained in:
Max Kellermann 2021-08-10 15:00:51 +02:00
parent ee6603ed38
commit f3d67115d7
1 changed files with 1 additions and 1 deletions

View File

@ -575,8 +575,8 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
#endif
if (require_export) {
PcmExport::Params params;
params.dsd_mode = PcmExport::DsdMode::NONE;
#ifdef ENABLE_DSD
params.dsd_mode = PcmExport::DsdMode::NONE;
if (audio_format.format == SampleFormat::DSD) {
params.dsd_mode = PcmExport::DsdMode::DOP;
}