Don't display "channel-selector" for plugins only pretending to be instruments
authorRobin Gareus <robin@gareus.org>
Wed, 1 Mar 2017 16:08:44 +0000 (17:08 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 1 Mar 2017 16:08:44 +0000 (17:08 +0100)
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

index daae15d3ad320d3258a7f267633e15090d84006e..b4152d81e19a54d7e9a43fac464e0619cd640712 100644 (file)
@@ -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;
        }