proper way to disconnect AUs
proper way to disconnect AUs
- Subject: proper way to disconnect AUs
- From: Karim Morsy <email@hidden>
- Date: Fri, 21 Jul 2006 02:36:56 +0200
Hi,
I'm connecting and disconnecting nodes in a running graph. I'm trying
to figure out what's the right way to do so, as I've experienced some
undesired behavior.
Just calling augraph(dis)connect and update does not seem to be
enough. for example, when I add and connect AUTimePitch (and update
the graph) the CPU load increases from 5% to 30%.
when I disconnect the AU, I thought it was no longer processing any
audio data as it has no connections on input or output scope.
however, when I disconnect AUTimePitch the CPU load decreases to
approximately 20% (should be 5% again, if it was really no longer
processing). a bypass on the disconnected AU doesn't change anything
either.
Also, AUNetSend keeps listening for connections even after it's
disconnected.
only if I also remove the node (augraphremovenode()) I achieve the
desired result, but I was looking for a way to be able to use a
single instance of the au and keep connecting and disconnecting it
when needed. this does not seem to be possible (is it ?), instead you
have to destroy it and create/initialize a whole new node for the au
again, right ?
does the removenode call both unintialize the AU and close the
component ?
any information on this issue would be appreciated.
thanks,
Karim
_______________________________________________
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