I’m trying to create a single channel audio buffer which refers to one channel of a multi-channel audio buffer. Pseudocode being:
const int size = 1024; AudioBuffer<float> multiChannel(4, size); AudioBuffer<float> singleChannel(multiChannel.getReadPointer(0), 1, size);
The issue I’m having is that getReaderPointer() returns
const float* but the constructor wants a
float* const*. How do this correctly?
Note: I only intend to be using the
singleChannel buffer for reading