projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e5cfb6
)
Don't display "channel-selector" for plugins only pretending to be instruments
author
Robin Gareus
<robin@gareus.org>
Wed, 1 Mar 2017 16:08:44 +0000
(17:08 +0100)
committer
Robin 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
patch
|
blob
|
history
diff --git
a/libs/ardour/plugin_insert.cc
b/libs/ardour/plugin_insert.cc
index daae15d3ad320d3258a7f267633e15090d84006e..b4152d81e19a54d7e9a43fac464e0619cd640712 100644
(file)
--- 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;
}