mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Allow port matrix to show both audio and midi ports at the same time, and use that facility for route IO selectors.
git-svn-id: svn://localhost/ardour2/branches/3.0@7344 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aad230da69
commit
92e4126617
14 changed files with 148 additions and 86 deletions
|
|
@ -107,7 +107,7 @@ BundleEditorMatrix::can_add_channel (boost::shared_ptr<Bundle> b) const
|
|||
}
|
||||
|
||||
void
|
||||
BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
|
||||
BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t)
|
||||
{
|
||||
if (b == _bundle) {
|
||||
|
||||
|
|
@ -118,13 +118,12 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b)
|
|||
return;
|
||||
}
|
||||
|
||||
/* XXX: allow user to specify type */
|
||||
_bundle->add_channel (d.get_name(), DataType::AUDIO);
|
||||
_bundle->add_channel (d.get_name(), t);
|
||||
setup_ports (OURS);
|
||||
|
||||
} else {
|
||||
|
||||
PortMatrix::add_channel (b);
|
||||
PortMatrix::add_channel (b, t);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue