Fixed #6882: Use default output device on mac
authorArmin Novak <armin.novak@thincast.com>
Fri, 12 Mar 2021 09:58:23 +0000 (10:58 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Fri, 12 Mar 2021 10:22:12 +0000 (11:22 +0100)
(cherry picked from commit b09d2044e13577c68127effff3d3716c45f7571d)

channels/rdpsnd/client/mac/rdpsnd_mac.m

index 5ccdbd6..8a01d9b 100644 (file)
@@ -144,7 +144,7 @@ static BOOL rdpsnd_mac_open(rdpsndDevicePlugin *device, const AUDIO_FORMAT *form
        OSStatus err;
        NSError *error;
        rdpsndMacPlugin *mac = (rdpsndMacPlugin *)device;
-       AudioObjectPropertyAddress propertyAddress = { kAudioHardwarePropertyDefaultSystemOutputDevice,
+       AudioObjectPropertyAddress propertyAddress = { kAudioHardwarePropertyDefaultOutputDevice,
                                                           kAudioObjectPropertyScopeGlobal,
                                                           kAudioObjectPropertyElementMaster };