Replacing a buffer's values with a float* array


#1

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.


#2

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


#3

Mono


#4

AudioBuffer::copyFrom should do the job then.