Add API to run automation only (emit Changed signal).
[ardour.git] / libs / ardour / plugin.cc
index 17984361b0e9f5de0132744ca35a92baf3b9a4ae..7c312011be554b684f583324f9f6e5dc2316b020 100644 (file)
@@ -477,7 +477,6 @@ XMLNode &
 Plugin::get_state ()
 {
        XMLNode* root = new XMLNode (state_node_name ());
-       LocaleGuard lg;
 
        root->set_property (X_("last-preset-uri"), _last_preset.uri);
        root->set_property (X_("last-preset-label"), _last_preset.label);
@@ -503,4 +502,13 @@ Plugin::set_info (PluginInfoPtr info)
        _info = info;
 }
 
-
+std::string
+Plugin::parameter_label (uint32_t which) const
+{
+       if (which >= parameter_count ()) {
+               return "";
+       }
+       ParameterDescriptor pd;
+       get_parameter_descriptor (which, pd);
+       return pd.label;
+}