Keeping an AudioProcessor alive when deleting the corresponding AudioProcessorGraph::Node


If i want to keep my AudioProcessor's node alive, to move it into an other AudioProcessorGraph, I can't delete my Node object.

Why ?


I'm not exactly sure what you're asking but Node uses a ScopedPointer for the AudioProcessor so the only way to keep your processor instance alive is to either change the Node class to not use a ScopedPointer or provide a means to allow the ScopedPointer to release the instance.  Node's are reference counted but there's no api to add an existing Node to a different graph so they can't be reused that way without modifying the code there as well.

Yes it's exactly what i meant !

I will modify the Node class to not use a ScopedPointer.

Thank you very much,