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)
This commit is contained in:
Robin Gareus 2020-05-08 03:16:37 +02:00
parent 7a5dc98296
commit 10df041421
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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