diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-08 03:16:37 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-08 03:17:28 +0200 |
commit | 10df04142192ef5cc7fb3ceff313b1d1bb2b2375 (patch) | |
tree | 38d87601a0d2b64c8d8973d2511a0150035c3f90 /libs/ardour | |
parent | 7a5dc98296571f267ce4489da40905668a4979d3 (diff) |
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)
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session_ltc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |