I have created a plugin that processes incoming audio and it works as expected when I build it as a VST3 and test it within Bitwig Studio.
I have also used the VST2.4 wrapper but when I test it within Ableton Live it is absolutely silent. A closer debugging inspection points out that the reason for this is that the input buffers are always empty and that the actual input is routed into the VST from the output buffer ??
Similar to the AGain example I get the inputs like so:
int32 numInChannels = data.inputs[ 0 ].numChannels; int32 numOutChannels = data.outputs[ 0 ].numChannels; // --- get audio buffers---------------- uint32 sampleFramesSize = getSampleFramesSizeInBytes( processSetup, data.numSamples ); void** in = getChannelBuffersPointer( processSetup, data.inputs [ 0 ] ); void** out = getChannelBuffersPointer( processSetup, data.outputs[ 0 ] ); // processing code goes here...
If my processing code writes straight into the output buffer everything works according to expectation. The question is : is this something that is unique to the VST wrapper ? Is it unique to Ableton ?