From 865112a239cd1ab18ef50b9568463465dacd2c39 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Mon, 16 Oct 2023 13:53:36 +0200 Subject: [PATCH] libobs: Replace kAudioObjectPropertyElementMaster with Main (cherry picked from commit 7aa18609a1f8139fa10890420af92876135b3910) --- libobs/audio-monitoring/osx/coreaudio-enum-devices.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libobs/audio-monitoring/osx/coreaudio-enum-devices.c b/libobs/audio-monitoring/osx/coreaudio-enum-devices.c index 0fe19e924..68f9e76ff 100644 --- a/libobs/audio-monitoring/osx/coreaudio-enum-devices.c +++ b/libobs/audio-monitoring/osx/coreaudio-enum-devices.c @@ -21,7 +21,7 @@ static bool obs_enum_audio_monitoring_device(obs_enum_audio_device_cb cb, AudioObjectPropertyAddress addr = {kAudioDevicePropertyStreams, kAudioDevicePropertyScopeOutput, - kAudioObjectPropertyElementMaster}; + kAudioObjectPropertyElementMain}; /* Check if the device is capable of audio output. */ AudioObjectGetPropertyDataSize(id, &addr, 0, NULL, &size); @@ -69,7 +69,7 @@ static void enum_audio_devices(obs_enum_audio_device_cb cb, void *data, { AudioObjectPropertyAddress addr = {kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, - kAudioObjectPropertyElementMaster}; + kAudioObjectPropertyElementMain}; UInt32 size = 0; UInt32 count; @@ -116,7 +116,7 @@ static void get_default_id(char **p_id) AudioObjectPropertyAddress addr = { kAudioHardwarePropertyDefaultSystemOutputDevice, kAudioObjectPropertyScopeGlobal, - kAudioObjectPropertyElementMaster}; + kAudioObjectPropertyElementMain}; if (*p_id) return;