osx: use 16 bit sample format
The OS X output does not seem to support 24 bit audio in the way MPD implements it currently. Fall back to 16 bit for now, and schedule 24 bit support on OS X for MPD 0.15.
This commit is contained in:
parent
a4512d3b9a
commit
4288cc069a
|
@ -223,6 +223,9 @@ osx_openDevice(void *data, struct audio_format *audioFormat)
|
|||
AURenderCallbackStruct callback;
|
||||
AudioStreamBasicDescription streamDesc;
|
||||
|
||||
if (audioFormat->bits > 16)
|
||||
audioFormat->bits = 16;
|
||||
|
||||
desc.componentType = kAudioUnitType_Output;
|
||||
desc.componentSubType = kAudioUnitSubType_DefaultOutput;
|
||||
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
|
||||
|
|
Loading…
Reference in New Issue