diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-05 13:00:24 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-05 13:13:16 -0700 |
commit | 8b4e71400695acd1dad3598965e92455272c0562 (patch) | |
tree | 005b3ba56852be841a0224a1c013c9c754b0502b /libs/ardour/session_butler.cc | |
parent | 551702b9e9e8766ba2f9723d23585c914803bf89 (diff) |
changes to use overwrite-buffers when loop is disabled or loop range changed
Diffstat (limited to 'libs/ardour/session_butler.cc')
-rw-r--r-- | libs/ardour/session_butler.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/session_butler.cc b/libs/ardour/session_butler.cc index b36d5459f3..0e9aa128dd 100644 --- a/libs/ardour/session_butler.cc +++ b/libs/ardour/session_butler.cc @@ -89,10 +89,15 @@ Session::request_overwrite_buffer (boost::shared_ptr<Track> t) queue_event (ev); } -/** Process thread. */ void Session::overwrite_some_buffers (boost::shared_ptr<Route> r) { + /* this is called from the process thread while handling queued + * SessionEvents. Therefore neither playback sample or read offsets in + * tracks will change while we "queue" them all for an upcoming + * overwrite. + */ + if (actively_recording()) { return; } |