From 8ffcdc9d02e4391aff0df74295972bdfb0557c78 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 May 2020 19:59:25 +0200 Subject: Send LTC timecode from engine context --- libs/ardour/audioengine.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/ardour/audioengine.cc') 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) { -- cgit v1.2.3