diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-01 17:08:44 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-01 17:08:44 +0100 |
commit | ab127d6e70aa12f68a149e9f146ed89805350374 (patch) | |
tree | d95e36d4e7234d0abe82d97b1be5b45a782a44da /libs | |
parent | 6e5cfb665f428b8bf78715de785030975414c39d (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |