Re: Custom Audio Units on the iPhone
Re: Custom Audio Units on the iPhone
- Subject: Re: Custom Audio Units on the iPhone
- From: "Pierre Zeeman" <email@hidden>
- Date: Tue, 25 Nov 2008 22:31:44 +0000
Bill,
On Tue, Nov 25, 2008 at 9:05 PM, William Stewart
<email@hidden> wrote:
However, one thing to note here is that on their own these things are not thread-safe - so if you are making connections or callbacks to an audio unit while it is also rendering, then you can have problems. You are better to use AUGraph as it manages that for you.
Callbacks and Connections in an AUGraph are called graph interactions (so you use that API rather than AudioUnitSetProperty)
Ok, so for thread safety we should use AUGraphSetNodeInputCallback (
AUGraph inGraph,
AUNode inDestNode,
UInt32 inDestInputNumber,
const AURenderCallbackStruct *inInputCallback
);
where inDestNode is pointing at the mixer and inDestInputNumber is the particular bus on the mixer. Ok, that makes sense. Thanks very much.
rgds
Pierre
_______________________________________________
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