summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/automation_control.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-28 21:20:43 +0000
committerDavid Robillard <d@drobilla.net>2008-09-28 21:20:43 +0000
commit598c3cc958a9ff90db68799adc2638b053219eef (patch)
tree6d29ce9e6e1c0b716da573bd763d1c8ffcbabb06 /libs/ardour/ardour/automation_control.h
parentedbe4a330768c76031eaa82ed9d9aba335d00c3e (diff)
Fix shadowing problem with *Control::set_value.
Fix nasty situation when setting value on a plugin automation control that's playing back. git-svn-id: svn://localhost/ardour2/branches/3.0@3823 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/automation_control.h')
-rw-r--r--libs/ardour/ardour/automation_control.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h
index 52fce1096c..7878077a98 100644
--- a/libs/ardour/ardour/automation_control.h
+++ b/libs/ardour/ardour/automation_control.h
@@ -68,7 +68,13 @@ public:
return ((ARDOUR::AutomationList*)_list.get())->stop_touch();
}
+ /** Set the value and do the right thing based on automation state
+ * (e.g. record if necessary, etc.)
+ */
void set_value(float val);
+
+ /** Get the current effective value based on automation state.
+ */
float get_value() const;
protected: