mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 08:57:41 +01:00
Don't display empty tabs in the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@7521 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
21fd76ef9a
commit
66760a574a
4 changed files with 86 additions and 15 deletions
|
|
@ -165,6 +165,18 @@ Bundle::add_channel (std::string const & n, DataType t)
|
|||
emit_changed (ConfigurationChanged);
|
||||
}
|
||||
|
||||
/** @param n Channel name */
|
||||
void
|
||||
Bundle::add_channel (std::string const & n, DataType t, PortList p)
|
||||
{
|
||||
{
|
||||
Glib::Mutex::Lock lm (_channel_mutex);
|
||||
_channel.push_back (Channel (n, t, p));
|
||||
}
|
||||
|
||||
emit_changed (ConfigurationChanged);
|
||||
}
|
||||
|
||||
bool
|
||||
Bundle::port_attached_to_channel (uint32_t ch, std::string portname)
|
||||
{
|
||||
|
|
@ -471,3 +483,4 @@ Bundle::channel_type (uint32_t c) const
|
|||
Glib::Mutex::Lock lm (_channel_mutex);
|
||||
return _channel[c].type;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue