Plugins chain resume() error


#1

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);

    instance1->processBlock(outputBuffer,*midiBuffer);//Vsti
    instance2->processBlock(outputBuffer,*midiBuffer);//Vst
}
 

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.

 


#2

See AudioProcessor::prepareToPlay