Trouble when adding connections to AudioProcessorGraph after the fact


#1

Hi,
I am writing a host application and want to use the AudioProcessorGraph to function as a mixer with sends.
I followed the tutorial http://docs.juce.com/master/tutorial_audio_processor_graph.html
The updateGraph method in the tutorial destroys and rebuilds the graph.
I would like to add connections without re-creating the graph but had no success (The added processor is not audible). Is it possible? Can anyone think of a bit I might have missed?

Cheers,
Ivo


#2

Never mind. Surrounding my code with this made it work:
player.setProcessor (nullptr);
… adding connection here
player.setProcessor (mainProcessor.get());