Merge pull request #162 from tokyovigilante/master

Fix 24-bit playback for macOS
This commit is contained in:
Andrew Kelley 2017-09-06 20:15:27 -04:00 committed by GitHub
commit 470c9ed44b

View File

@ -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;
}