AudioProcessorGraph doesn't check isSuspended on its nodes


#1

The documentation for AudioProcessor::isSuspended() states that:

Any code that calls processBlock() should call isSuspended() before doing so, and if the processor is suspended, it should avoid the call and emit silence or whatever is appropriate.

Looking at ProcessBufferOp::callProcess() in juce_AudioProcessorGraph.cpp, this isn’t being done. It just calls processor->processBlock. In fact, there’s no call to isSuspended() in the file.

Thus, the graph outputs audio from suspended nodes. Unless I’m missing something, this seems to be wrong?


#2

Should the AudioProcessor check for isSuspended? Or should I to work around it (if so: how)?


#3

This should be fixed on develop now. Thank you for reporting.