I'm resetting the output buffer within the ProcessDoubleReplacing function I've implemented for a Synth I'm making with IPlug/C++:
Code: Select all
void MySynth::ProcessDoubleReplacing(double **inputs, double **outputs, int nFrames) {
double *left = outputs[0];
double *right = outputs[1];
memset(left, 0, nFrames * sizeof(double));
memset(right, 0, nFrames * sizeof(double));
// ... code
}
I know DAW could pass the "input buffer pointer" to another plugin.
Can it do the same for the output buffer?
Let say I've two instances of the plugin loaded, and DAW share across them the same output pointer: the result of the first PDR will be resetted once it pass the same buffer to the second instance, where it process its PDR and run memset again.
Is this scenario possible?
Thanks