output/wasapi: check ENABLE_DSD before setting dsd_mode
This commit is contained in:
parent
ee6603ed38
commit
f3d67115d7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue