mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-31 23:05:37 +00:00
Merge pull request #162 from tokyovigilante/master
Fix 24-bit playback for macOS
This commit is contained in:
commit
470c9ed44b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue