From de66b3504afba97cfd2c4efdcccc56fb8702edbd Mon Sep 17 00:00:00 2001 From: Ryan Walklin Date: Thu, 7 Sep 2017 09:54:41 +1000 Subject: [PATCH] Fix 24-bit playback for macOS --- src/coreaudio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coreaudio.c b/src/coreaudio.c index 39f16a7..3079f4e 100644 --- a/src/coreaudio.c +++ b/src/coreaudio.c @@ -940,6 +940,10 @@ static int set_ca_desc(enum SoundIoFormat fmt, AudioStreamBasicDescription *desc desc->mFormatFlags = kAudioFormatFlagIsSignedInteger; desc->mBitsPerChannel = 16; break; + case SoundIoFormatS24LE: + desc->mFormatFlags = kAudioFormatFlagIsSignedInteger; + desc->mBitsPerChannel = 24; + break; default: return SoundIoErrorIncompatibleDevice; }