From 1f07948972ca1cac5854539268ca3b290b79c671 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 30 Jul 2010 02:09:39 +0000 Subject: 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 --- libs/ardour/bundle.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'libs/ardour/bundle.cc') 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); -- cgit v1.2.3