Re: AUGraphs and memory
Re: AUGraphs and memory
- Subject: Re: AUGraphs and memory
- From: Bill Stewart <email@hidden>
- Date: Mon, 3 Feb 2003 14:26:48 -0800
On Wednesday, January 29, 2003, at 01:36 AM, Christopher Corbell wrote:
I'm seeing some memory leaks & overwrites in my application, I have
a couple of questions about AUGraph (and one about MusicPlayer)
and memory...
- Am I correct in expecting AUGraphRemoveNode to also do away with
any AudioUnit associated with the node, even if I don't call
uninitialize
on the whole graph?
Yes it will
- Similarly, is it right to assume that DisposeAUGraph will dispose of
all units initialized for nodes in the graph?
Yes it will
- Finally, when I've set a custom AUNode for a track in a
MusicSequence,
will a single call to MusicSequenceDisposeTrack() remove the node and
dispose of its unit, or is it necessary (safe?) to use
AUGraphRemoveNode?
No it won't - you may have other tracks looking at a graph node.
it is necessary to remove the node - but only safe if there is no
tracks referencing it)
If your graph is running then you must call AUGraphUpdate and make sure
you get a noErr and isUpdated==true result -> that indicates that all
impending modifications tot he graph have been completed. (A good trick
to watch this in operation is to do a CAShow on the graph before and
after calling AUGraphUpdate to see the state of the graph change)... It
is *not* enough to call remove node in this case - as this just
scheduled the change to occur - but it won't until update is done
Bill
Thanks for any help,
Chris
_______________________________________________
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.