mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user