Tremus / CPLUG

C wrapper for VST3, AUv2, CLAP audio plugin formats
Other
98 stars 8 forks source link

VST3ProcessContextTranslator_getAudioInput() crash #2

Closed Photosounder closed 4 months ago

Photosounder commented 4 months ago

Edit: This was due to having #define CPLUG_NUM_INPUT_BUSSES 0.

There's a problem with VST3ProcessContextTranslator_getAudioInput(), I added float **input = ctx->getAudioInput(ctx, 0); to my cplug_process() function, but vst3ctx->data->numInputs is 0, vst3ctx->data->inputs is NULL and the CPLUG_LOG_ASSERT() does nothing to stop it from trying to read from vst3ctx->data->inputs[busIdx] which doesn't end well.