13
0

fix LTC generator latency compensation.

This commit is contained in:
Robin Gareus 2014-10-11 11:15:08 +02:00
parent fa9780ba67
commit 8ca546ec88

View File

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