do not show control surface bundles in non-MIDI port matrix.

This will stop being the right thing to do if anyone ever creates a control protocol that
uses audio ports.
This commit is contained in:
Paul Davis 2015-12-03 22:01:07 -05:00
parent e82cc88c6f
commit d237165e21

View file

@ -443,6 +443,12 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
/* our control surfaces */
/* XXX assume for now that all control protocols with ports use
* MIDI. If anyone created a control protocol that used audio ports,
* this will break.
*/
if ((type == DataType::MIDI || type == DataType::NIL)) {
ControlProtocolManager& m = ControlProtocolManager::instance ();
for (list<ControlProtocolInfo*>::iterator i = m.control_protocol_info.begin(); i != m.control_protocol_info.end(); ++i) {
if ((*i)->protocol) {
@ -454,6 +460,7 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
}
}
}
}
/* our sync ports */