Allow coreaudio3 driver to work with audio devices that have 2 or more output channels. (#14715)

This commit is contained in:
Ruben Nine 2022-12-10 16:08:26 +01:00 committed by GitHub
parent c2f50a83bf
commit db9d3d3507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ static bool g_interrupted;
return nil;
format = au.outputBusses[0].format;
if (format.channelCount != 2)
if (format.channelCount < 2)
return nil;
renderFormat = [[AVAudioFormat alloc] initStandardFormatWithSampleRate:rate channels:2];