typedef Evoral::ControlSet::Controls Controls;
- int set_automation_state (const XMLNode&, Evoral::Parameter default_param);
- XMLNode& get_automation_state();
+ int set_automation_xml_state (const XMLNode&, Evoral::Parameter default_param);
+ XMLNode& get_automation_xml_state();
protected:
Session& _a_session;
* pass that type and it will be used for the untyped AutomationList found.
*/
int
-Automatable::set_automation_state (const XMLNode& node, Evoral::Parameter legacy_param)
+Automatable::set_automation_xml_state (const XMLNode& node, Evoral::Parameter legacy_param)
{
Glib::Mutex::Lock lm (control_lock());
}
} else {
- error << "Expected AutomationList node, got '" << (*niter)->name() << endmsg;
+ error << "Expected AutomationList node, got '" << (*niter)->name() << "'" << endmsg;
}
}
}
XMLNode&
-Automatable::get_automation_state ()
+Automatable::get_automation_xml_state ()
{
Glib::Mutex::Lock lm (control_lock());
XMLNode* node = new XMLNode (X_("Automation"));
if ((prop = node.property (X_("mono")))) {
set_mono (string_is_affirmative (prop->value()));
}
-
+
return 0;
}
node->add_child_nocopy ((*i)->state (full));
}
+ node->add_child_nocopy (get_automation_xml_state ());
return *node;
}
automation_path = Glib::build_filename(_session.automation_dir(), prop->value ());
}
+ for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
+ if ((*niter)->name() == X_("Automation")) {
+ set_automation_xml_state (**niter, Evoral::Parameter (PanAutomation));
+ }
+ }
+
return 0;
}
}
if (full_state) {
- XMLNode& automation = Automatable::get_automation_state();
+ XMLNode& automation = Automatable::get_automation_xml_state();
if (!automation.children().empty()
|| !automation.properties().empty()
|| !_visible_controls.empty()) {
if ((prop = (*niter)->property ("path")) != 0) {
old_set_automation_state (*(*niter));
} else {
- set_automation_state (*(*niter), Evoral::Parameter(PluginAutomation));
+ set_automation_xml_state (*(*niter), Evoral::Parameter(PluginAutomation));
}
if ((prop = (*niter)->property ("visible")) != 0) {
_main_outs->panner()->set_state(*io_child, version);
} else if (io_child->name() == X_("Automation")) {
/* IO's automation is for the fader */
- _amp->set_automation_state (*io_child, Evoral::Parameter (GainAutomation));
+ _amp->set_automation_xml_state (*io_child, Evoral::Parameter (GainAutomation));
}
}
}