diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-05-13 21:34:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-05-13 21:34:09 +0000 |
commit | 0569107ddc0d2a8df6ca0a2c8cc16ebe8f3dee99 (patch) | |
tree | 81b0a6ffb5cd967d3b205a11ad6d4f8726aa03d2 /libs/ardour/processor.cc | |
parent | 7188ec39903e4cef049468c5a0583d9ec67a290d (diff) |
more work on the new all-Processor-all-The-Time redesign of Route - LOTS OF BREAKAGE STILL EXPECTED ; change all(?) methods that pass a start/end frame in to use sframes_t not nframes_t
git-svn-id: svn://localhost/ardour2/branches/3.0@5074 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/processor.cc')
-rw-r--r-- | libs/ardour/processor.cc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index b48b0aebb0..84fb43d68c 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -64,6 +64,7 @@ Processor::Processor(Session& session, const string& name) , _active(false) , _next_ab_is_active(false) , _configured(false) + , _sort_key (0) , _gui(0) { } @@ -99,17 +100,16 @@ Processor::state (bool full_state) { XMLNode* node = new XMLNode (state_node_name); stringstream sstr; - - // FIXME: This conflicts with "id" used by plugin for name in legacy sessions (ugh). - // Do we need to serialize this? - /* char buf[64]; + + // NOTE: This conflicts with "id" used by plugin for name in legacy sessions + id().print (buf, sizeof (buf)); node->add_property("id", buf); - */ - node->add_property("name", _name); node->add_property("active", active() ? "yes" : "no"); + snprintf (buf, sizeof (buf), "%u", _sort_key); + node->add_property("sort-key", buf); if (_extra_xml){ node->add_child_copy (*_extra_xml); @@ -144,11 +144,16 @@ Processor::set_state (const XMLNode& node) const XMLProperty *legacy_active = 0; const XMLProperty *legacy_placement = 0; - // may not exist for legacy sessions + // may not exist for legacy 3.0 sessions if ((prop = node.property ("name")) != 0) { set_name(prop->value()); } + // may not exist for legacy 3.0 sessions + if ((prop = node.property ("id")) != 0) { + _id = prop->value(); + } + XMLNodeList nlist = node.children(); XMLNodeIterator niter; |