From 951a83e295afbb8939cd27de6fb80d95cf3c407a Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 22 Feb 2022 11:13:44 +0100 Subject: [PATCH] Fixed deprecated mac symbol --- channels/rdpsnd/client/mac/rdpsnd_mac.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/channels/rdpsnd/client/mac/rdpsnd_mac.m b/channels/rdpsnd/client/mac/rdpsnd_mac.m index e239f73f0..d9dcdd5cf 100644 --- a/channels/rdpsnd/client/mac/rdpsnd_mac.m +++ b/channels/rdpsnd/client/mac/rdpsnd_mac.m @@ -145,7 +145,12 @@ static BOOL rdpsnd_mac_open(rdpsndDevicePlugin *device, const AUDIO_FORMAT *form rdpsndMacPlugin *mac = (rdpsndMacPlugin *)device; AudioObjectPropertyAddress propertyAddress = { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, - kAudioObjectPropertyElementMaster }; +#if defined(MAC_OS_VERSION_12_0) + kAudioObjectPropertyElementMain +#else + kAudioObjectPropertyElementMaster +#endif + }; if (mac->isOpen) return TRUE;