mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
e82cc88c6f
commit
d237165e21
1 changed files with 14 additions and 7 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue