mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 11:06:32 +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,13 +443,20 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
|
||||||
|
|
||||||
/* our control surfaces */
|
/* our control surfaces */
|
||||||
|
|
||||||
ControlProtocolManager& m = ControlProtocolManager::instance ();
|
/* XXX assume for now that all control protocols with ports use
|
||||||
for (list<ControlProtocolInfo*>::iterator i = m.control_protocol_info.begin(); i != m.control_protocol_info.end(); ++i) {
|
* MIDI. If anyone created a control protocol that used audio ports,
|
||||||
if ((*i)->protocol) {
|
* this will break.
|
||||||
list<boost::shared_ptr<Bundle> > b = (*i)->protocol->bundles ();
|
*/
|
||||||
for (list<boost::shared_ptr<Bundle> >::iterator j = b.begin(); j != b.end(); ++j) {
|
|
||||||
if ((*j)->ports_are_inputs() == inputs) {
|
if ((type == DataType::MIDI || type == DataType::NIL)) {
|
||||||
program->add_bundle (*j);
|
ControlProtocolManager& m = ControlProtocolManager::instance ();
|
||||||
|
for (list<ControlProtocolInfo*>::iterator i = m.control_protocol_info.begin(); i != m.control_protocol_info.end(); ++i) {
|
||||||
|
if ((*i)->protocol) {
|
||||||
|
list<boost::shared_ptr<Bundle> > b = (*i)->protocol->bundles ();
|
||||||
|
for (list<boost::shared_ptr<Bundle> >::iterator j = b.begin(); j != b.end(); ++j) {
|
||||||
|
if ((*j)->ports_are_inputs() == inputs) {
|
||||||
|
program->add_bundle (*j);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue