From 4288cc069aa852646b57f3d5ca0c156f8781f404 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Dec 2008 23:23:37 +0100 Subject: 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. --- src/output/osx_plugin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/output') diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c index 74ecc6e02..518f0bd11 100644 --- a/src/output/osx_plugin.c +++ b/src/output/osx_plugin.c @@ -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; -- cgit v1.2.3