Coreaudio/M1: prefer device IOThread Workgroup

This commit is contained in:
Robin Gareus 2022-06-03 21:39:54 +02:00
parent de2c553e1a
commit 99e785541a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1215,7 +1215,7 @@ CoreAudioPCM::workgroup (os_workgroup_t& workgroup)
{
assert (_auhal);
UInt32 size = sizeof (os_workgroup_t);
return noErr == AudioUnitGetProperty (_auhal, kAudioOutputUnitProperty_OSWorkgroup, kAudioUnitScope_Global, 0, &workgroup, &size);
return noErr == AudioUnitGetProperty (_auhal, kAudioDevicePropertyIOThreadOSWorkgroup, kAudioUnitScope_Global, 0, &workgroup, &size);
}
#endif