From ab127d6e70aa12f68a149e9f146ed89805350374 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 Mar 2017 17:08:44 +0100 Subject: Don't display "channel-selector" for plugins only pretending to be instruments If a plugin has 0 audio-outputs, and has the meta-data "InstrumentPlugin", Ardour would interpret is as "variable number of output synth. --- libs/ardour/plugin_insert.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/plugin_insert.cc') diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index daae15d3ad..b4152d81e1 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -430,6 +430,13 @@ PluginInsert::has_output_presets (ChanCount in, ChanCount out) return false; } } + + if (ppc.size () == 1 && ppc.find (0) != ppc.end () && !_plugins[0]->get_info ()->reconfigurable_io ()) { + // some midi-sequencer (e.g. QMidiArp) or other midi-out plugin + // pretending to be an "Instrument" + return false; + } + if (!is_instrument ()) { return false; } -- cgit v1.2.3