I'm trying to do something cheeky with my vst plugin. I've created a global AudioDeviceManager inside my plugin, and I want to pass the processed audio from my plugin to the AudioDeviceIOCallback function and have that processed audio hit the audio device (Different device than what the DAW is using)
I've gotten as far as copying the AudioSampleBuffer to a scratch buffer that is visible to the AudioDeviceManager:
void processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages) {
...
copiedBuffer.makeCopyOf(buffer);
...
}
But I'm not sure how to route that buffer to the AudioDeviceIOCallback function. I tried doing something like the below, but I'm not hearing any audio:
void audioDeviceIOCallback(const float **inputChannelData, int numInputChannels, float **outputChannelData, int numOutputChannels, int numSamples) {
outputChannelData = copiedBuffer.getArrayOfWritePointers();
}
I have a feeling that I'm missing something here. Any pointers?
PS: See y'all at NAMM!
