diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-27 21:15:16 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-27 21:18:12 -0700 |
commit | ed67f465fb765d33ebe4a459540b371bbae44a95 (patch) | |
tree | 00f559c9d29d73181c38e0a4cdda0922bfa22fdc /libs/ardour/session_transport.cc | |
parent | 5cdeb2401f789e9968a4f1fb775d1dfb3e9f5a77 (diff) |
fix JACK transport sync
key change: to sync with JACK always locate jack-position PLUS buffer-sized-rounded-worst_latency_preroll() ahead
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 01bdcea7cb..b6c5d64503 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -211,7 +211,7 @@ Session::locate (samplepos_t target_sample, bool with_roll, bool with_flush, boo g_atomic_int_inc (&_seek_counter); _last_roll_or_reversal_location = target_sample; if (!for_loop_end) { - _remaining_latency_preroll = worst_latency_preroll (); + _remaining_latency_preroll = worst_latency_preroll_buffer_size_ceil (); } timecode_time(_transport_sample, transmitting_timecode_time); // XXX here? @@ -585,7 +585,7 @@ Session::start_transport () _last_roll_location = _transport_sample; _last_roll_or_reversal_location = _transport_sample; - _remaining_latency_preroll = worst_latency_preroll (); + _remaining_latency_preroll = worst_latency_preroll_buffer_size_ceil (); have_looped = false; |