summaryrefslogtreecommitdiff
path: root/libs/ardour/session_ltc.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-05-09 03:53:30 +0200
committerRobin Gareus <robin@gareus.org>2020-05-09 05:10:04 +0200
commit3ca33c07dcf0d593c73f15eb62123dc59fc73fe4 (patch)
treee4598866e8e27576b80debae33a7ea2b1daeacf2 /libs/ardour/session_ltc.cc
parenta46091b86a897d8d2886205ed0c277ddaf6f17cd (diff)
Update LTC reader port latency on connection change
This mechanism adds infrastructure that can later also be used for MTC and MIDIClock. PS. The LTC Generator port's latency is queried after the port is created, and later kept in sync via LatencyUpdated signal.
Diffstat (limited to 'libs/ardour/session_ltc.cc')
-rw-r--r--libs/ardour/session_ltc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc
index 5c3da63f17..79f1264303 100644
--- a/libs/ardour/session_ltc.cc
+++ b/libs/ardour/session_ltc.cc
@@ -107,10 +107,10 @@ Session::ltc_tx_resync_latency (bool playback)
if (deletion_in_progress() || !playback) {
return;
}
- DEBUG_TRACE (DEBUG::TXLTC, "resync latency\n");
boost::shared_ptr<Port> ltcport = ltc_output_port();
if (ltcport) {
ltcport->get_connected_latency_range(ltc_out_latency, true);
+ DEBUG_TRACE (DEBUG::TXLTC, string_compose ("resync latency: %1\n", ltc_out_latency.max));
}
}