diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-02 16:10:51 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-02 16:10:51 -0400 |
commit | 04cba6eca0acd5bc1d264f52e68eb960abe7ef50 (patch) | |
tree | 7edc8d93043e07e6c9f891ee0f21101f67112da1 /libs/ardour/automation_watch.cc | |
parent | 1d48fb011e5f5eefbc656dc72197a620654ff847 (diff) |
fix (?) behaviour when punching into automation write mode while the transport is moving, hopefully without breaking anything else
Diffstat (limited to 'libs/ardour/automation_watch.cc')
-rw-r--r-- | libs/ardour/automation_watch.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/automation_watch.cc b/libs/ardour/automation_watch.cc index 0fa98f2133..16e10c95f9 100644 --- a/libs/ardour/automation_watch.cc +++ b/libs/ardour/automation_watch.cc @@ -72,8 +72,10 @@ AutomationWatch::add_automation_watch (boost::shared_ptr<AutomationControl> ac) */ if (_session && _session->transport_rolling() && ac->alist()->automation_write()) { - DEBUG_TRACE (DEBUG::Automation, string_compose ("\ttransport is rolling @ %1, so enter write pass\n", _session->transport_speed())); - ac->list()->set_in_write_pass (true); + DEBUG_TRACE (DEBUG::Automation, string_compose ("\ttransport is rolling @ %1, audible = %2so enter write pass\n", + _session->transport_speed(), _session->audible_frame())); + /* add a guard point since we are already moving */ + ac->list()->set_in_write_pass (true, true, _session->audible_frame()); } /* we can't store shared_ptr<Destructible> in connections because it |