Add stem export dialog and make all different export dialogs save their config to...
[ardour.git] / libs / ardour / processor.cc
index 0bea376fc93630888307dfa6faf6b5ea9226fdb9..e5616987c6428e4bef5874a39b97155911eaf9b0 100644 (file)
@@ -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<Evoral::Parameter>::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)
 {