13
0

add midi-bypass to re-configurable-i/o instruments

This commit is contained in:
Robin Gareus 2016-05-19 16:28:02 +02:00
parent eda4662e15
commit 77f3518571

View File

@ -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);
}