I’m implementing a graph of plugins to be used inside an audiosource, and would like to know what is the recommended way to ‘connect’ I/O of this AudioProcessorGraph.
I see there’s AudioProcessorGraphPlayer, but this is for connecting with Device, and I would like to process straight in/out of the ProcessBlock function.
I also seen AudioGraphIOProcessor but unfortunately, when using process block function, I get crackle in the audio, which seems to be due to the buffer size. Each buffer feeded to the graph has most often 32 extra samples. And very often I also get variable size buffer.
When tring to process single node, it work fine. But thru the whole graph, I can’t get around this buffer size issue at the moment.
Should I use the AudioGraphIOProcessor ?
Also, I’m calling this in prepareToPlay :
filterGraph.getGraph().setPlayConfigDetails(2, 2, sampleRate_, samplesPerBlockExpected);
Though the buffer size are changing and I get Juce assertion about size.
I guess there’s something I’m overlooking… Maybe a latency compensation thing that would make those 32 samples ? Any advice is appreciated.