Hi,
I have a class that can process audio buffers with this function:
Code:
void FilteredFeedbackDelay<S>::processAudio(double** inputs, double** outputs, int nFrames) { ... }
In ProcessDoubleReplacing I call this function, however, I'm passing the input buffers as inputs AND outputs, like this:
Code:
delay.processAudio(inputs, inputs, nFrames);
So basically, I'm manipulating the input buffers here and later I'm calling another function where the output buffers are calculated. In most cases I don't see/hear any problems. But sometimes there are glitches and feedback where I wouldn't expect them and I assume it's coming from this function call.
Is manipulating the input buffers "dangerous"? Is it better to store the samples in another array/container first?
Thanks
Peat