X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Fprocessor.cc;h=e5616987c6428e4bef5874a39b97155911eaf9b0;hb=8e35583358e7df6f0f950463612740b2a8cdffb1;hp=0bea376fc93630888307dfa6faf6b5ea9226fdb9;hpb=579fcb70e2b3b0a1ef2af9fc88edebff6d7e6dd3;p=ardour.git diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index 0bea376fc9..e5616987c6 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -107,7 +107,7 @@ Processor::state (bool full_state) } 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()) { @@ -115,10 +115,11 @@ Processor::state (bool full_state) stringstream sstr; for (set::iterator x = _visible_controls.begin(); x != _visible_controls.end(); ++x) { + if (x != _visible_controls.begin()) { sstr << ' '; } - sstr << *x; + sstr << (*x).id(); } automation.add_property ("visible", sstr.str()); @@ -196,7 +197,7 @@ Processor::set_state (const XMLNode& node, int version) 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) { @@ -246,6 +247,7 @@ Processor::set_state (const XMLNode& node, int version) return 0; } +/** Caller must hold process lock */ bool Processor::configure_io (ChanCount in, ChanCount out) {