Re: AUGraph calling AUBase::DoInitialize in the render thread?
Re: AUGraph calling AUBase::DoInitialize in the render thread?
- Subject: Re: AUGraph calling AUBase::DoInitialize in the render thread?
- From: James Coker <email@hidden>
- Date: Wed, 21 Jan 2004 15:40:09 -0700
So I take this to mean that a host using AUGraph should
*always* initialize an AU after making connections, but
before calling AUGraphUpdate.
Thanks,
Jim
On Jan 21, 2004, at 12:40 PM, William Stewart wrote:
The graph once it has an AU that is connected to another AU has to
ensure that the AU can render (ie. that it is initialized).
This is explicitly called by the program with AUGraphUpdate.
My previous email about the Matrix Mixer describes how to avoid this
initialization executing on the render thread.
Bill
On 18/01/2004, at 2:30 AM, Philippe Wicker wrote:
Hi all,
While debuging an AU of mine within an application using the AUGraph
API, I noticed that AUBase::DoInitialize is called within the render
thread context. The stack trace shows calls to an AudioUnitGraph C++
class which is I believe the implementation of the AUGraph.
The stack trace shows that the first called method is
AudioUnitGraph::GraphRenderCallback_NEW and later
AudioUnitGraph::ConnectAudioUnit and later again AudioUnitInitialize.
I assume that this sequence is true for all the AU belonging to the
graph, so it may take quite a long time. Is it Ok to do this in the
render thread? What is the rationale behind this?
Thanks,
Philippe Wicker
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.