From fa42d1284e69c3769a526442131a9375ff285b3c Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Fri, 5 Feb 2021 10:23:48 -0800 Subject: [PATCH] macos: consider major version 11 Change version logic to allow for major 11 or later. Partial fix for #492 --- src/hostapi/coreaudio/pa_mac_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostapi/coreaudio/pa_mac_core.c b/src/hostapi/coreaudio/pa_mac_core.c index 402c512..2d98a3b 100644 --- a/src/hostapi/coreaudio/pa_mac_core.c +++ b/src/hostapi/coreaudio/pa_mac_core.c @@ -733,7 +733,7 @@ PaError PaMacCore_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIn Gestalt(gestaltSystemVersionMinor, &minor); // Starting with 10.6 systems, the HAL notification thread is created internally - if (major == 10 && minor >= 6) { + if ( major > 10 || (major == 10 && minor >= 6) ) { CFRunLoopRef theRunLoop = NULL; AudioObjectPropertyAddress theAddress = { kAudioHardwarePropertyRunLoop, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster }; OSStatus osErr = AudioObjectSetPropertyData (kAudioObjectSystemObject, &theAddress, 0, NULL, sizeof(CFRunLoopRef), &theRunLoop); -- 2.43.0