From f8407ee6ae84932cfb660e029c0cc98c06e0b650 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 11 May 2023 14:22:10 +0200 Subject: [PATCH] better auto-discovery, tweak plugin filters Signed-off-by: falkTX --- carla | 2 +- plugins/Common/IldaeilUI.cpp | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/carla b/carla index 7321be6..5e34da6 160000 --- a/carla +++ b/carla @@ -1 +1 @@ -Subproject commit 7321be60c6c523cc755b0979571a0a6a5e0c7085 +Subproject commit 5e34da68874789ed1e622adddff9d667d94d0446 diff --git a/plugins/Common/IldaeilUI.cpp b/plugins/Common/IldaeilUI.cpp index f6c4932..27d4cdb 100644 --- a/plugins/Common/IldaeilUI.cpp +++ b/plugins/Common/IldaeilUI.cpp @@ -849,14 +849,12 @@ protected: { if (info->io.cvIns != 0 || info->io.cvOuts != 0) return; - - #if ILDAEIL_STANDALONE if (info->io.midiIns != 0 && info->io.midiIns != 1) return; if (info->io.midiOuts != 0 && info->io.midiOuts != 1) return; - if (info->io.audioIns > 2 || info->io.audioOuts > 2) - return; + + #if ILDAEIL_STANDALONE if (fPluginType == PLUGIN_INTERNAL) { if (std::strcmp(info->label, "audiogain") == 0) @@ -867,11 +865,11 @@ protected: return; } #elif DISTRHO_PLUGIN_IS_SYNTH - if (info->io.midiIns != 1 && info->io.audioIns != 0) + if (info->io.midiIns != 1) return; - if ((info->metadata.hints & PLUGIN_IS_SYNTH) == 0x0 && info->io.audioIns != 0) + if (info->io.audioIns == 0) return; - if (info->io.audioOuts != 1 && info->io.audioOuts != 2) + if ((info->metadata.hints & PLUGIN_IS_SYNTH) == 0x0) return; #elif DISTRHO_PLUGIN_WANT_MIDI_OUTPUT if ((info->io.midiIns != 1 && info->io.audioIns != 0 && info->io.audioOuts != 0) || info->io.midiOuts != 1)