AUGraphConnect/Disconnect and StereoMixer
AUGraphConnect/Disconnect and StereoMixer
- Subject: AUGraphConnect/Disconnect and StereoMixer
- From: Hari Seldon <email@hidden>
- Date: Wed, 09 Aug 2006 17:21:53 -0400
Hey,
I'm just about to get my main coreaudio based design finished, but
seem to have encountered a little problem.
I have a graph connecting a bunch of nodes; a StereoMixer feeding the
default output device. I plan to have a bunch of AUConverters, each
one representing an audio data stream (i'll be using their input
callbacks to feed them data from another thread when ready) and plan
to connect/disconnect the converters at various times. From what I've
seen I can just use AUGraphConnectNodeInput and AUGraphUpdate to add
sources, and similarly AUGraphDisconnectNodeInput and AUGraphUpdate to
remove sources. The problem I'm curious about is the
inDestInputNumber parameter to these functions.
If I'm connecting various converter nodes to the mixer, do I have to
keep track of what the next inDestInputNumber should be for the mixer?
And related to that do I have to keep track of it for disconnecting
them, or do i call disconnect on the actual source node (the converter)?
Lastly, if I have say 3 converters connected to the mixer, and I'm
going to disconnect one of them (not the last one), do I have to
remember the mixer input index of the converter that was removed so
that I insert the next one at that location?
Thanks
_______________________________________________
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