From 8ca546ec883191bdbd2825883eca323a68cfea56 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 11 Oct 2014 11:15:08 +0200 Subject: fix LTC generator latency compensation. --- 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 2ce25b5a48..1c05f61b22 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -248,9 +248,9 @@ Session::ltc_tx_send_time_code_for_cycle (framepos_t start_frame, framepos_t end framepos_t cycle_start_frame; if (current_speed < 0) { - cycle_start_frame = (start_frame - ltc_out_latency.max); - } else if (current_speed > 0) { cycle_start_frame = (start_frame + ltc_out_latency.max); + } else if (current_speed > 0) { + cycle_start_frame = (start_frame - 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