aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-08 23:23:37 +0100
committerMax Kellermann <max@duempel.org>2008-12-08 23:23:37 +0100
commit4288cc069aa852646b57f3d5ca0c156f8781f404 (patch)
tree950586a3c48f6625211ad9fbe9faeb66c422d83d /src
parenta4512d3b9a115b61953a38d02f883456b586d7e2 (diff)
downloadmpd-4288cc069aa852646b57f3d5ca0c156f8781f404.tar.gz
mpd-4288cc069aa852646b57f3d5ca0c156f8781f404.tar.xz
mpd-4288cc069aa852646b57f3d5ca0c156f8781f404.zip
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.
Diffstat (limited to '')
-rw-r--r--src/output/osx_plugin.c3
1 files changed, 3 insertions, 0 deletions
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;