From ac3f5bce433a5ffbc083d3c62d30eefec8ffd1ec Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 16 Oct 2022 14:19:20 +0100 Subject: [PATCH] CLAP_PORT_STEREO/MONO is needed for anklang Signed-off-by: falkTX --- distrho/src/DistrhoPluginCLAP.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distrho/src/DistrhoPluginCLAP.cpp b/distrho/src/DistrhoPluginCLAP.cpp index a83ddfbd..a2d5858c 100644 --- a/distrho/src/DistrhoPluginCLAP.cpp +++ b/distrho/src/DistrhoPluginCLAP.cpp @@ -1990,7 +1990,8 @@ static bool clap_plugin_audio_ports_get(const clap_plugin_t* /* const plugin */, // TODO CV // info->port_type = audioPort.hints & kAudioPortIsCV ? CLAP_PORT_CV : nullptr; - info->port_type = nullptr; + // TODO port groups + info->port_type = maxPortCount == 2 ? CLAP_PORT_STEREO : maxPortCount == 1 ? CLAP_PORT_MONO : nullptr; info->in_place_pair = DISTRHO_PLUGIN_NUM_INPUTS == DISTRHO_PLUGIN_NUM_OUTPUTS ? index : CLAP_INVALID_ID;