diff --git a/Code/Editor/LogFile_mac.mm b/Code/Editor/LogFile_mac.mm index fb227314ad..3471f29958 100644 --- a/Code/Editor/LogFile_mac.mm +++ b/Code/Editor/LogFile_mac.mm @@ -26,8 +26,13 @@ QString graphicsCardName() // Create an iterator io_iterator_t iterator; +#if MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_12_0 + if (IOServiceGetMatchingServices(kIOMainPortDefault,matchDict, + &iterator) == kIOReturnSuccess) +#else if (IOServiceGetMatchingServices(kIOMasterPortDefault,matchDict, &iterator) == kIOReturnSuccess) +#endif { // Iterator for devices found io_registry_entry_t regEntry; diff --git a/Gems/Microphone/Code/Source/Platform/Mac/MicrophoneSystemComponent_Mac.mm b/Gems/Microphone/Code/Source/Platform/Mac/MicrophoneSystemComponent_Mac.mm index 567f2db6b2..fe556f6d07 100644 --- a/Gems/Microphone/Code/Source/Platform/Mac/MicrophoneSystemComponent_Mac.mm +++ b/Gems/Microphone/Code/Source/Platform/Mac/MicrophoneSystemComponent_Mac.mm @@ -84,7 +84,7 @@ public: AudioObjectPropertyAddress theAddress = { kAudioHardwarePropertyDefaultInputDevice, kAudioObjectPropertyScopeGlobal, - kAudioObjectPropertyElementMaster + kAudioObjectPropertyElementMain }; status = AudioObjectGetPropertyData(kAudioObjectSystemObject,