Fix build with DSD disabled

This commit is contained in:
Christian Kröner 2018-03-07 22:40:19 +01:00
parent 5b456cadc4
commit d84cd500bb
1 changed files with 3 additions and 3 deletions

View File

@ -715,13 +715,13 @@ void
OSXOutput::Open(AudioFormat &audio_format) OSXOutput::Open(AudioFormat &audio_format)
{ {
char errormsg[1024]; char errormsg[1024];
#ifdef ENABLE_DSD
bool dop = dop_setting;
#endif
Float64 sample_rate = initial_sample_rate; Float64 sample_rate = initial_sample_rate;
PcmExport::Params params; PcmExport::Params params;
params.alsa_channel_order = true; params.alsa_channel_order = true;
#ifdef ENABLE_DSD
bool dop = dop_setting;
params.dop = false; params.dop = false;
#endif
memset(&asbd, 0, sizeof(asbd)); memset(&asbd, 0, sizeof(asbd));
asbd.mFormatID = kAudioFormatLinearPCM; asbd.mFormatID = kAudioFormatLinearPCM;