diff options
author | Robin Gareus <robin@gareus.org> | 2012-11-09 07:48:11 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2012-11-09 07:48:11 +0000 |
commit | d4140367a3537730531a3ab5e9f2cb9b1f855807 (patch) | |
tree | b5b7f1449f281fdaabb6e56758697636545ed5fa | |
parent | f2009ea7771048a89463fea25f0bad9de1e17567 (diff) |
LTC encoder: relax alignment constraint under some circumstances.
git-svn-id: svn://localhost/ardour2/branches/3.0@13406 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/session_ltc.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc index d7ff89366e..0f7f280ef8 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -400,6 +400,12 @@ Session::ltc_tx_send_time_code_for_cycle (framepos_t start_frame, framepos_t end maxdiff = slave()->resolution(); } else { maxdiff = ceil(fabs(ltc_speed))*2.0; + if (nominal_frame_rate() != frame_rate()) { + maxdiff *= 3.0; + } + if (ltc_enc_tcformat == Timecode::timecode_23976 || ltc_enc_tcformat == Timecode::timecode_24976) { + maxdiff *= 15.0; + } } DEBUG_TRACE (DEBUG::LTC, string_compose("LTC TX4: enc: %1 + %2 - %3 || buf-bytes: %4 enc-byte: %5\n", |