Re: Connecting AU output to >1 destination -- PLEASE HELP!!!
Re: Connecting AU output to >1 destination -- PLEASE HELP!!!
- Subject: Re: Connecting AU output to >1 destination -- PLEASE HELP!!!
- From: Bill Stewart <email@hidden>
- Date: Mon, 18 Aug 2003 11:43:36 -0700
On Monday, August 18, 2003, at 07:16 AM, Patrick Gostovic wrote:
Hi.
I've been racking my brain for weeks now, studying all of the (sadly
sparse) core audio docs, and resorting to just plain trial and error
but I cannot for the life of me connect a single output bus of an AU to
more than one destination AU at a time.
That's because this is known as a fan out connection.
Fan out implies either one of two things that if allowed, every AU
would have to support:
(1) buffering of its rendering
(2) doing the same work more than once
In either case we decided that this was not desirable, so we explicitly
disallow fan out connections in AUGraph
(This was allowed for the V1 units - they are "ancient history" now -
and is NOT permitted for V2 units...
If you need this kind of thing, then you need to insert a unit that can
distribute results from one input to multiple outputs - the matrix
mixer unit is able to do this of course (and is one of its many uses) -
see email threads on this topic recently
I'm pretty sure it must be
possible because I am able to do it with the "Dave" app in the
developer examples. Even though Dave is written in java, it is my
understanding that the java api is just a wrapper around the C api --
so I would think that following the same steps as Dave should work, but
alas...:( Anyway, an exmaple of what I am trying to do is something
like this...
synth
/ \
| reverb
| /
mixer
|
output
This is because Dave is using V1 units
I am using the AUGraph API, AUGraphCopnnectNodeInput(...), etc. I get
a kAUGraphErr_InvalidConnection (-10861) error on
AUGraphCopnnectNodeInput when I try to make the second connection from
the synth.
Yes - because you are using V2 units and this is what you should do
(and also what the graph should do)
The basic flow of code I'm using goes like this....
NewAUGraph
AUGraphOpen
AUGraphInitialize
AUGraphStart
AUGraphNewNode (synth)
AUGraphNewNode (reverb)
AUGraphNewNode (mixer)
AUGraphNewNode (output)
AUGraphConnectNodeInput (synth to mixer)
AUGraphConnectNodeInput (synth to reverb) --
kAUGraphErr_InvalidConnection
AUGraphConnectNodeInput (reverb to mixer)
AUGraphConnectNodeInput (mixer to output)
AUGraphUpdate
Am I missing something obvious? I would really appreciate some help
with this.
No - just sparsely documented API's (which we are doing our best to get
addressed)
Bill
Thanks.
Patrick
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.