I would like to find the best practices for making a copy of channel data during audio processing.
I'd like to do some audio processing in parallel, kind of like a splitter. I think success would be to have my own copy of the data of getWritePointer and getArrayOfWritePointers, that I could use in the same way as those functions. The copies should be deleted after each block is processed.
I'm working in Visual Studio 2010, which doesn't have some of the options of the latest C++ version.
To dimension an array in processBlock on the stack (to keep it lockless), I tried making a const float of numSamples and dimensioning the array with it, I still get an error that it is non-constant:
const float numsamples = buffer.getNumSamples(); float sampleHold[numsamples];
I have also tried memcpy and memmove without success.
Does anyone know of best practices for this?