summaryrefslogtreecommitdiff
path: root/libs/ardour/user_bundle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-20 14:46:00 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-20 14:46:00 +0000
commit61db2175eb8b8fffd0c1796ace78ac33c9e1adf0 (patch)
tree6fdc23e7e0161ce54642b0bd44dc8e0a33f05efe /libs/ardour/user_bundle.cc
parentef038c1a84ecd541a540d5a5baa677d7663e535c (diff)
New matrix-based editor for connections and bundles, based on thorwil's design.
Add Bundle Manager dialog. git-svn-id: svn://localhost/ardour2/branches/3.0@4415 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/user_bundle.cc')
-rw-r--r--libs/ardour/user_bundle.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/user_bundle.cc b/libs/ardour/user_bundle.cc
index d53bf8b155..2dee0af01e 100644
--- a/libs/ardour/user_bundle.cc
+++ b/libs/ardour/user_bundle.cc
@@ -45,7 +45,7 @@ ARDOUR::UserBundle::set_state (XMLNode const & node)
return -1;
}
- add_channel ();
+ add_channel ("XXX");
XMLNodeList const ports = (*i)->children ();
@@ -83,13 +83,13 @@ ARDOUR::UserBundle::get_state ()
node->add_property ("name", name ());
{
- Glib::Mutex::Lock lm (_ports_mutex);
+ Glib::Mutex::Lock lm (_channel_mutex);
- for (std::vector<PortList>::iterator i = _ports.begin(); i != _ports.end(); ++i) {
-
+ for (std::vector<Channel>::iterator i = _channel.begin(); i != _channel.end(); ++i) {
XMLNode* c = new XMLNode ("Channel");
+ c->add_property ("name", i->name);
- for (PortList::iterator j = i->begin(); j != i->end(); ++j) {
+ for (PortList::iterator j = i->ports.begin(); j != i->ports.end(); ++j) {
XMLNode* p = new XMLNode ("Port");
p->add_property ("name", *j);
c->add_child_nocopy (*p);