From 10df04142192ef5cc7fb3ceff313b1d1bb2b2375 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 8 May 2020 03:16:37 +0200 Subject: Fix LTC generator alignment When rolling forward the LTC generator needs to send future a timestamp, so that when it matches the current time when the signal arrives at the output port. (A6 aligns transport playhead to output) --- libs/ardour/session_ltc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/session_ltc.cc') diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc index 0270a224d9..26e16047cb 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -273,9 +273,9 @@ Session::send_ltc_for_cycle (samplepos_t start_sample, samplepos_t end_sample, p samplepos_t cycle_start_sample; if (new_ltc_speed < 0) { - cycle_start_sample = (start_sample + ltc_out_latency.max); - } else if (new_ltc_speed > 0) { cycle_start_sample = (start_sample - ltc_out_latency.max); + } else if (new_ltc_speed > 0) { + cycle_start_sample = (start_sample + ltc_out_latency.max); } else { /* There is no need to compensate for latency when not rolling * rather send the accurate NOW timecode -- cgit v1.2.3