Re: AUGraph deadlocks
Re: AUGraph deadlocks
- Subject: Re: AUGraph deadlocks
- From: Kyle Sluder <email@hidden>
- Date: Mon, 05 Dec 2011 09:49:06 -0800
On Mon, Dec 5, 2011 at 8:02 AM, patrick machielse <email@hidden> wrote:
> function: renderCallback {
> if ( kAudioUnitRenderAction_PreRender ) {
> - get new processingRecipe (synchronized) if there is one available
Even ignoring all the other advice in this thread about how you should
only be doing audio rendering within your render callback, you are
going to run into serious trouble if you're synchronizing with other
threads from within your render callback.
When your AU receives a property change, construct your new recipe
from your property information and store that recipe somewhere that
your render code can access without having to block on a
synchronization primitive. Look at OSAtomic.h for some functions that
can help you implement lockless atomic updates.
--Kyle Sluder
_______________________________________________
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