Fix crash on startup if an LV2 plugin has a bad .ttl file.
[ardour.git] / libs / evoral / evoral / Control.hpp
index 2f6e72be1e82fe3364cc1848602953fe9361ff09..806125d9736f33a2f5d607eb4318510108a68292 100644 (file)
@@ -38,7 +38,15 @@ public:
 
        virtual void  set_float(float val, bool to_list=false, FrameTime frame=0);
        virtual float get_float(bool from_list=false, FrameTime frame=0) const;
-       virtual float user_float() const;
+       
+
+       /** Get the latest user-set value
+        * (which may not equal get_value() when automation is playing back).
+        *
+        * Automation write/touch works by periodically sampling this value
+        * and adding it to the ControlList.
+        */
+       float user_float() const { return _user_value; }
 
        void set_list(boost::shared_ptr<ControlList>);