mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
fix transport issues when loop-is-mode is off.
Session::unset_play_loop() needed to be a no-op if play loop was already false, and this was exacerbated now that it potentially schedules butler transport work.
This commit is contained in:
parent
b18bd1ed0e
commit
37ae5bb30c
1 changed files with 12 additions and 9 deletions
|
|
@ -833,15 +833,18 @@ Session::check_declick_out ()
|
|||
void
|
||||
Session::unset_play_loop ()
|
||||
{
|
||||
play_loop = false;
|
||||
clear_events (SessionEvent::AutoLoop);
|
||||
clear_events (SessionEvent::AutoLoopDeclick);
|
||||
set_track_loop (false);
|
||||
|
||||
if (Config->get_seamless_loop()) {
|
||||
/* likely need to flush track buffers: this will locate us to wherever we are */
|
||||
add_post_transport_work (PostTransportLocate);
|
||||
_butler->schedule_transport_work ();
|
||||
if (play_loop) {
|
||||
play_loop = false;
|
||||
clear_events (SessionEvent::AutoLoop);
|
||||
clear_events (SessionEvent::AutoLoopDeclick);
|
||||
set_track_loop (false);
|
||||
|
||||
|
||||
if (Config->get_seamless_loop()) {
|
||||
/* likely need to flush track buffers: this will locate us to wherever we are */
|
||||
add_post_transport_work (PostTransportLocate);
|
||||
_butler->schedule_transport_work ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue