Plugins chain resume() error


I'm chaining two AudioPluginInstance by passing a buffer here is the code:


audioDeviceIOCallback(const float** inputChannelData,
                           int totalNumInputChannels,
                           float** outputChannelData,
                           int totalNumOutputChannels,
                           int numSamples)
    AudioSampleBuffer outputBuffer (outputChannelData, totalNumOutputChannels, numSamples);


but im getting this error:

// if this fails, the host hasn't called resume() before processing
            jassert (isProcessing);

How do I correct this mistake?, if I click continue in the debbugger error message the program works correctly.



See AudioProcessor::prepareToPlay