Re: subGraphs
Re: subGraphs
- Subject: Re: subGraphs
- From: William Stewart <email@hidden>
- Date: Tue, 7 Nov 2006 11:53:09 -0800
On 07/11/2006, at 8:51 AM, Brian Whitman wrote:
Is there a guide to making subgraphs? I don't see any examples in
the dev tools and there's nothing on the web except for the API.
On the main graph, I am:
NewAUGraph(&mainGraph)
AUGraphOpen(mainGraph)
AUGraphNewNodeSubGraph(mainGraph, &subGraphNode)
AUGraphGetNodeInfoSubGraph(mainGraph,subGraphNode,&subGraph)
And then in the subGraph I am:
AUGraphNewNode (subGraph, &timedesc, 0, NULL, &timeNode)
AUGraphNewNode (subGraph, &playerdesc, 0, NULL, &playerNode)
AUGraphConnectNodeInput(subGraph, playerNode, 0, timeNode, 0)
Your subgraph needs to have an output unit, so it can be started/
stopped - you can use the generic output unit to do this
then back in the main graph:
AUGraphConnectNodeInput(mainGraph, subGraphNode, 0, mixerNode, 0),
AUGraphConnectNodeInput(mainGraph, mixerNode, 0, outputNode, 0)
AUGraphInitialize (mainGraph)
then later on I do
AUGraphStart(mainGraph)
This doesn't work. No audio, but no errors reported from any of the
AUGraph functions. The same graph without being split into subgraph
bits works.
I am not calling NewAUGraph, AUGraphOpen, AUGraphInitialize, or
AUGraphStart on the subGraph -- only the mainGraph. Should I?
No, you shouldn't need to do this
Bill
_______________________________________________
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
--
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
________________________________________________________________________
__
_______________________________________________
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
References: | |
| >subGraphs (From: Brian Whitman <email@hidden>) |