diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-23 00:09:46 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-23 00:09:46 -0700 |
commit | d04c9b32444b01e9c29d603c6301843003986c4a (patch) | |
tree | 7b32cf3ec8855399fc0922b3f67e324dba8e65cc /libs/ardour/session.cc | |
parent | 1a2665e25fc8b01e2b7ca155259d53bc92c544b6 (diff) |
more tweaks to correctly (or more correctly) reload disk reader buffers when loop fade choice changes
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 79bf3b31e2..980dec8dcf 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -1415,15 +1415,15 @@ Session::auto_loop_changed (Location* location) const bool rolling = transport_rolling (); - if (rolling) { + boost::shared_ptr<RouteList> r = routes.reader (); - if (play_loop) { + for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { + (*i)->reload_loop (); + } - boost::shared_ptr<RouteList> r = routes.reader (); + if (rolling) { - for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { - (*i)->reload_loop (); - } + if (play_loop) { if (_transport_sample < location->start() || _transport_sample > location->end()) { // new loop range excludes current transport |