mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Replace kAudioObjectPropertyElementMaster with Main
This commit is contained in:
parent
8dd20dfd33
commit
7aa18609a1
@ -21,7 +21,7 @@ static bool obs_enum_audio_monitoring_device(obs_enum_audio_device_cb cb,
|
|||||||
|
|
||||||
AudioObjectPropertyAddress addr = {kAudioDevicePropertyStreams,
|
AudioObjectPropertyAddress addr = {kAudioDevicePropertyStreams,
|
||||||
kAudioDevicePropertyScopeOutput,
|
kAudioDevicePropertyScopeOutput,
|
||||||
kAudioObjectPropertyElementMaster};
|
kAudioObjectPropertyElementMain};
|
||||||
|
|
||||||
/* Check if the device is capable of audio output. */
|
/* Check if the device is capable of audio output. */
|
||||||
AudioObjectGetPropertyDataSize(id, &addr, 0, NULL, &size);
|
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,
|
AudioObjectPropertyAddress addr = {kAudioHardwarePropertyDevices,
|
||||||
kAudioObjectPropertyScopeGlobal,
|
kAudioObjectPropertyScopeGlobal,
|
||||||
kAudioObjectPropertyElementMaster};
|
kAudioObjectPropertyElementMain};
|
||||||
|
|
||||||
UInt32 size = 0;
|
UInt32 size = 0;
|
||||||
UInt32 count;
|
UInt32 count;
|
||||||
@ -116,7 +116,7 @@ static void get_default_id(char **p_id)
|
|||||||
AudioObjectPropertyAddress addr = {
|
AudioObjectPropertyAddress addr = {
|
||||||
kAudioHardwarePropertyDefaultSystemOutputDevice,
|
kAudioHardwarePropertyDefaultSystemOutputDevice,
|
||||||
kAudioObjectPropertyScopeGlobal,
|
kAudioObjectPropertyScopeGlobal,
|
||||||
kAudioObjectPropertyElementMaster};
|
kAudioObjectPropertyElementMain};
|
||||||
|
|
||||||
if (*p_id)
|
if (*p_id)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user