summaryrefslogtreecommitdiff
path: root/libs/ardour/bundle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-30 02:09:39 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-30 02:09:39 +0000
commit1f07948972ca1cac5854539268ca3b290b79c671 (patch)
tree4d507ec8a035894628a8f5b84486656fdff6d0e9 /libs/ardour/bundle.cc
parent66760a574a1fc0ccc8a798c2900a717c134838ea (diff)
Put Mackie surface ports into the Ardour tab of the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@7522 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/bundle.cc')
-rw-r--r--libs/ardour/bundle.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/bundle.cc b/libs/ardour/bundle.cc
index 94fada383d..6037bfc7e9 100644
--- a/libs/ardour/bundle.cc
+++ b/libs/ardour/bundle.cc
@@ -177,6 +177,18 @@ Bundle::add_channel (std::string const & n, DataType t, PortList p)
emit_changed (ConfigurationChanged);
}
+/** @param n Channel name */
+void
+Bundle::add_channel (std::string const & n, DataType t, std::string const & 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)
{
@@ -211,7 +223,7 @@ Bundle::remove_channels ()
* @return true if any channel is associated with p.
*/
bool
-Bundle::uses_port (std::string p) const
+Bundle::offers_port (std::string p) const
{
Glib::Mutex::Lock lm (_channel_mutex);