Re: AUGraph stream format problems
Re: AUGraph stream format problems
- Subject: Re: AUGraph stream format problems
- From: James Coker <email@hidden>
- Date: Mon, 6 Oct 2003 19:35:04 -0600
On Monday, October 6, 2003, at 05:47 PM, William Stewart wrote:
Obviously, as a connection can involve both input and output sides,
this is not foolproof. Also, if the graph is running, this
connection/initialization will be made on the render thread -
generally not a good idea.
So the general advise is, make sure the formats are correct and the
AU is initialized before connecting it to a playing graph. (That
also allows you to determine if the AU can become a member of the
graph at the location, etc, you want it to be).
This seems contradictory with the statement above about AUGraph. So I
should check the I/O bus formats, then init the AU, then add to the
graph?
Yes - I don't see the contradiction... The AU will still be connected
by the graph, but be establishing the formats correctly *before* doing
the connection, and *intitializing* an AU before connecting it (but
after setting its formats!) two things then happen:
(1) In the process of making a connection there is no mismatch of the
formats, so no need to reformat the AU
(2) The graph then initializes the unit - which becomes a no-op
because you've already initialized it outside of the graph by
*explicitly* calling AudioUnitInitialize on the AU before connecting
it.
Does that make sense.
Yes, that's better. I assume the possibly redundant init call is a
double-check.
Jim
_______________________________________________
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.