diff options
author | Max Kellermann <max@duempel.org> | 2008-12-08 23:23:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-08 23:23:37 +0100 |
commit | 4288cc069aa852646b57f3d5ca0c156f8781f404 (patch) | |
tree | 950586a3c48f6625211ad9fbe9faeb66c422d83d /src/output/osx_plugin.c | |
parent | a4512d3b9a115b61953a38d02f883456b586d7e2 (diff) | |
download | mpd-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.c | 3 |
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; |