summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-06-12 02:25:20 +0200
committerRobin Gareus <robin@gareus.org>2017-06-12 02:26:23 +0200
commit333e20a3a60cccbab57957b8266ea043bb7bfb8a (patch)
tree842ce7b1d91aadfec3595ac25d96f1890c9d1d66 /libs/ardour/automation_control.cc
parent3d2bbf93efe42412823722a17ae4da25db3b51f2 (diff)
VCA/SlavableAutomationCtrl re-design:
* remember master-ctrl value on assignment & save with session * Control/AutomationCtrl only stores ctrl's own value (w/o master) * virtual AutomationControl::get_value () -> use SlavableAC method * MasterRecord uses weak-ptr (fixes recursive ~Controllable() deadlock)
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc
index 4e81de8aaf..055c000bc9 100644
--- a/libs/ardour/automation_control.cc
+++ b/libs/ardour/automation_control.cc
@@ -92,6 +92,13 @@ AutomationControl::get_value() const
return Control::get_double (from_list, _session.transport_frame());
}
+double
+AutomationControl::get_save_value() const
+{
+ /* save user-value, not incl masters */
+ return Control::get_double ();
+}
+
void
AutomationControl::pre_realtime_queue_stuff (double val, PBD::Controllable::GroupControlDisposition gcd)
{