diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-07 19:59:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-07 20:43:22 +0200 |
commit | 8ffcdc9d02e4391aff0df74295972bdfb0557c78 (patch) | |
tree | 1bb089efd608b061b01586542b97b17de3652f3a /libs/ardour/audioengine.cc | |
parent | 7b28aabb43a037b23285de7d56b952cb7d36e3c4 (diff) |
Send LTC timecode from engine context
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index db13861bbc..c97c9e1776 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -469,6 +469,8 @@ AudioEngine::process_callback (pframes_t nframes) if (_freewheeling && !Freewheel.empty()) { Freewheel (nframes); } else { + samplepos_t start_sample = _session->transport_sample (); + if (Port::cycle_nframes () <= nframes) { _session->process (Port::cycle_nframes ()); } else { @@ -489,6 +491,10 @@ AudioEngine::process_callback (pframes_t nframes) } } } + + /* send timecode for current cycle */ + samplepos_t end_sample = _session->transport_sample (); + _session->send_ltc_for_cycle (start_sample, end_sample, nframes); } if (_freewheeling) { |