From db9d3d3507ef7fbd214c9dd4c63a2d0ef2e16991 Mon Sep 17 00:00:00 2001 From: Ruben Nine Date: Sat, 10 Dec 2022 16:08:26 +0100 Subject: [PATCH] Allow coreaudio3 driver to work with audio devices that have 2 or more output channels. (#14715) --- audio/drivers/coreaudio3.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/drivers/coreaudio3.m b/audio/drivers/coreaudio3.m index 897db2fc10..3b28e5f61d 100644 --- a/audio/drivers/coreaudio3.m +++ b/audio/drivers/coreaudio3.m @@ -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];