AudioProcessorGraph inside AudioProcessorGraph


#1

I'm trying to use a Graph inside another Graph.

I add the audio callback with the AudioProcessorPlayer on the parent Graph, everything works as expected.

But when I add a childGraph node (childGraph have audioInputNode/audioOutputNode) to the parentGraph, the childGraph does'nt seem to have any input/output. So i can't connect the child to the audioInputNode/audioOutputNode of his parent.

graphPlayer->setProcessor(parentGraph);
deviceManager.addAudioCallback(graphPlayer);

DBG(parentGraph->getNumInputChannels()); // returns 2 (returned 0 before the addAudioCallBack(graphPlayer))
DBG(parentGraph->getNumOutputChannels()); // returns 2

parentGraph->addNode(childGraph);

DBG(childGraph->getNumInputChannels()); // returns 0
DBG(childGraph->getNumOutputChannels()); // returns 0

Am I missing something? Is it even possible to nest graphs like that? 


#2

I couldn’t get it to work…

https://forum.juce.com/t/chaining-audioprocessorgraphs

Rail