mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
mac-capture: Replace kAudioObjectPropertyElementMaster with Main
This commit is contained in:
@@ -44,7 +44,7 @@ static bool coreaudio_enum_device(enum_device_proc_t proc, void *param,
|
||||
|
||||
AudioObjectPropertyAddress addr = {kAudioDevicePropertyStreams,
|
||||
kAudioDevicePropertyScopeInput,
|
||||
kAudioObjectPropertyElementMaster};
|
||||
kAudioObjectPropertyElementMain};
|
||||
|
||||
/* check to see if it's a mac input device */
|
||||
AudioObjectGetPropertyDataSize(id, &addr, 0, NULL, &size);
|
||||
@@ -77,7 +77,7 @@ static void enum_devices(enum_device_proc_t proc, void *param)
|
||||
{
|
||||
AudioObjectPropertyAddress addr = {kAudioHardwarePropertyDevices,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMaster};
|
||||
kAudioObjectPropertyElementMain};
|
||||
|
||||
UInt32 size = 0;
|
||||
UInt32 count;
|
||||
@@ -142,7 +142,7 @@ bool coreaudio_get_device_id(CFStringRef uid, AudioDeviceID *id)
|
||||
AudioObjectPropertyAddress propertyAddress = {
|
||||
kAudioHardwarePropertyDeviceForUID,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMaster};
|
||||
kAudioObjectPropertyElementMain};
|
||||
|
||||
AudioValueTranslation translation = {&uid, sizeof(CFStringRef), id,
|
||||
sizeof(AudioDeviceID)};
|
||||
|
||||
Reference in New Issue
Block a user