Fixed deprecated mac symbol
@@ -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;
