projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda4662
)
add midi-bypass to re-configurable-i/o instruments
author
Robin Gareus
<robin@gareus.org>
Thu, 19 May 2016 14:28:02 +0000
(16:28 +0200)
committer
Robin Gareus
<robin@gareus.org>
Thu, 19 May 2016 14:29:23 +0000
(16:29 +0200)
libs/ardour/plugin_insert.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/plugin_insert.cc
b/libs/ardour/plugin_insert.cc
index a72412a86875fbc99d99520249287265802b2da1..d3204381381039fdab820bf5589cb40624e22bb3 100644
(file)
--- a/
libs/ardour/plugin_insert.cc
+++ b/
libs/ardour/plugin_insert.cc
@@
-1877,6
+1877,8
@@
PluginInsert::internal_can_support_io_configuration (ChanCount const & inx, Chan
// houston, we have a problem.
return Match (Impossible, 0);
}
+ // midi bypass
+ if (inx.n_midi () > 0 && out.n_midi () == 0) { out.set (DataType::MIDI, 1); }
return Match (Delegate, 1, _strict_io);
}
@@
-1945,6
+1947,8
@@
PluginInsert::automatic_can_support_io_configuration (ChanCount const & inx, Cha
if (!r) {
return Match (Impossible, 0);
}
+ // midi bypass
+ if (in.n_midi () > 0 && out.n_midi () == 0) { out.set (DataType::MIDI, 1); }
return Match (Delegate, 1);
}