Replacing a buffer's values with a float* array

So I’ve finished up the finishing touches of my plugin but I designed to return a float* array that will ultimately be the processed values of the buffer.

It is a convolution reverb plugin and I am trying to understand how I can make these values be the output of the plugin.

I was looking at buffer.copyFrom or buffer.setSample but I am not sure what the proper way to do so would be.

I figured I could receive some guidance from the JUCE community.

I appreciate everyone’s time.

Does the array contain mono or interleaved stereo/multichannel audio?

Mono

AudioBuffer::copyFrom should do the job then.

1 Like