Fix 24-bit playback for macOS

This commit is contained in:
Ryan Walklin 2017-09-07 09:54:41 +10:00
parent 85103e43e4
commit de66b3504a

View file

@ -940,6 +940,10 @@ static int set_ca_desc(enum SoundIoFormat fmt, AudioStreamBasicDescription *desc
desc->mFormatFlags = kAudioFormatFlagIsSignedInteger; desc->mFormatFlags = kAudioFormatFlagIsSignedInteger;
desc->mBitsPerChannel = 16; desc->mBitsPerChannel = 16;
break; break;
case SoundIoFormatS24LE:
desc->mFormatFlags = kAudioFormatFlagIsSignedInteger;
desc->mBitsPerChannel = 24;
break;
default: default:
return SoundIoErrorIncompatibleDevice; return SoundIoErrorIncompatibleDevice;
} }