libobs: Fix default macOS monitoring device

The default device retrieved was the one used for system sounds.
This fixes it by retrieving the one used to output audio.

It seems the bug has been there since the initial writing of this bit of
code (so 2017).
This commit is contained in:
pkv
2025-12-12 15:21:42 -05:00
committed by Ryan Foster
parent f86861cc8d
commit ad4315b15a
@@ -106,8 +106,8 @@ static bool alloc_default_id(void *data, const char *name, const char *id)
static void get_default_id(char **p_id)
{
AudioObjectPropertyAddress addr = {kAudioHardwarePropertyDefaultSystemOutputDevice,
kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMain};
AudioObjectPropertyAddress addr = {kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMain};
if (*p_id)
return;