diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-19 21:09:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-19 21:09:40 +0000 |
commit | 7b6b75f38ff6b34de3f70e36045498f227c1727d (patch) | |
tree | d7bc76a8745daa5051b2bcce7f84910f3ad72aac /libs/ardour/ardour/automation_control.h | |
parent | b6642d14ca64153b5731d1a3a79e4d00060541ca (diff) |
forward port automation handling changes from 2.x, upto and including about rev 6981 (will need full testing in the 3.X context). as on 2.x, this removes real-time visual updates to automation curves during write/touch automation recording
git-svn-id: svn://localhost/ardour2/branches/3.0@7653 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/automation_control.h')
-rw-r--r-- | libs/ardour/ardour/automation_control.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/ardour/automation_control.h b/libs/ardour/ardour/automation_control.h index 2d22b9e661..006e74346f 100644 --- a/libs/ardour/ardour/automation_control.h +++ b/libs/ardour/ardour/automation_control.h @@ -64,14 +64,14 @@ public: return ((ARDOUR::AutomationList*)_list.get())->set_automation_state(as); } - inline void start_touch() { + inline void start_touch(double when) { set_touching (true); - return ((ARDOUR::AutomationList*)_list.get())->start_touch(); + return ((ARDOUR::AutomationList*)_list.get())->start_touch(when); } - inline void stop_touch() { + inline void stop_touch(bool mark, double when) { set_touching (false); - return ((ARDOUR::AutomationList*)_list.get())->stop_touch(); + return ((ARDOUR::AutomationList*)_list.get())->stop_touch(mark, when); } /** Set the value and do the right thing based on automation state @@ -86,6 +86,8 @@ public: double lower() const { return parameter().min(); } double upper() const { return parameter().max(); } + const ARDOUR::Session& session() const { return _session; } + protected: ARDOUR::Session& _session; }; |