13
0

Save/restore aux send levels. Fixes #3546.

git-svn-id: svn://localhost/ardour2/branches/3.0@8061 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-11-20 01:08:53 +00:00
parent e1d194cf48
commit 5ce249b7dc
2 changed files with 10 additions and 5 deletions

View File

@ -49,8 +49,8 @@ class Send : public Delivery
bool metering() const { return _metering; }
void set_metering (bool yn) { _metering = yn; }
XMLNode& state(bool full);
XMLNode& get_state(void);
XMLNode& state (bool full);
XMLNode& get_state ();
int set_state(const XMLNode&, int version);
uint32_t pans_required() const { return _configured_input.n_audio(); }

View File

@ -133,6 +133,8 @@ Send::state (bool full)
snprintf (buf, sizeof (buf), "%" PRIu32, _bitslot);
node.add_property ("bitslot", buf);
node.add_child_nocopy (_amp->state (full));
return node;
}
@ -143,8 +145,6 @@ Send::set_state (const XMLNode& node, int version)
return set_state_2X (node, version);
}
XMLNodeList nlist = node.children();
XMLNodeIterator niter;
const XMLProperty* prop;
Delivery::set_state (node, version);
@ -161,7 +161,12 @@ Send::set_state (const XMLNode& node, int version)
_session.mark_send_id (_bitslot);
}
/* XXX need to load automation state & data for amp */
XMLNodeList nlist = node.children();
for (XMLNodeIterator i = nlist.begin(); i != nlist.end(); ++i) {
if ((*i)->name() == X_("Processor")) {
_amp->set_state (**i, version);
}
}
return 0;
}