falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.55k stars 144 forks source link

Surge and other VST3 instruments have no audio output in latest main #1845

Closed alex-tee closed 5 months ago

alex-tee commented 5 months ago

Surge and Vaporizer2 VST3 plugins have no audio output. LV2 versions work. Other tested VST3 instruments work as expected (Odin2, Vital).

(See https://gitlab.zrythm.org/zrythm/zrythm/-/issues/4970 and https://gitlab.zrythm.org/zrythm/zrythm/-/issues/4971)

surge_error

falkTX commented 5 months ago

to give extra info here:

issue is present on the native/custom vst3 hosting implementation of carla, but not on the juce hosting side (which I am deprecating and moving away from slowly)

almost sure this is something to do with default buses reported by the plugin, and my misunderstanding of the vst3 spec. likely the plugin is expecting the host to do something with "bus active by default", and carla does nothing as it assumes "if they are active by default, doing nothing means they start in active state".

relevant code is in https://github.com/falkTX/Carla/blob/main/source/backend/plugin/CarlaPluginVST3.cpp#L1973 if someone wants to give it a try.

alex-tee commented 5 months ago

Commenting out the if statements for inputs and outputs fixed the issue

alex-tee commented 5 months ago

this is fixed now