Core Audio hanging workaround
Core Audio hanging workaround
- Subject: Core Audio hanging workaround
- From: Tim Hewett <email@hidden>
- Date: Thu, 04 Feb 2016 15:29:10 +0000
I find that Core Audio has a problem when devices are added too quickly when they are part of an existing aggregate or multi output device - it keeps hanging (taking all audio apps with it) and coreaudiod needs to be restarted to get it working again. This has been found up to happen to and including OS 10.9, possibly beyond, e.g. if two USB devices are connected at the same time, maybe if sharing the same hub, after a few connection attempts the whole audio system freezes. This does not happen if the devices are not part of an aggregate or multioutput device.
I have an app which creates audio devices, sometimes several in quick succession, and regularly find that coreaudiod needs to be restarted when they are part of one or more virtual devices. I am wondering if anyone has found a way around this problem.
My main focus on a workaround has been to remove the devices from any aggregate or multioutput device they are part of when they are removed, and to re-instate them a short time after they have been recreated, all to avoid them being part of one at the time of device creation, but even that approach leads to the hanging problem sometimes.
Any “real world experience” on how to stop this problem would be much appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden