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


#1

Hello,

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 ?

Thanks,
Louis


#2

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.


#3

Yes it's exactly what i meant !

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

Thank you very much,

Louis