From 4fa955baf29d1d4d9d94f8ff49ecfe99c2dee1e3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 May 2020 15:12:26 +0200 Subject: Fix Latency information of TransportMasterPort ports PortManager::cycle_start() excludes these ports from being resampled. They're directly handled by the TSM, outside of the session. --- libs/ardour/port.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 0822fd075f..d3d5670552 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -370,7 +370,7 @@ Port::set_public_latency_range (LatencyRange const& range, bool playback) const if (_port_handle) { LatencyRange r (range); - if (externally_connected ()) { + if (externally_connected () && 0 == (_flags & TransportMasterPort)) { #if 0 r.min *= _speed_ratio; r.max *= _speed_ratio; @@ -436,7 +436,7 @@ Port::public_latency_range (bool /*playback*/) const if (_port_handle) { r = port_engine.get_latency_range (_port_handle, sends_output() ? true : false); - if (externally_connected ()) { + if (externally_connected () && 0 == (_flags & TransportMasterPort)) { #if 0 r.min /= _speed_ratio; r.max /= _speed_ratio; @@ -485,7 +485,7 @@ Port::get_connected_latency_range (LatencyRange& range, bool playback) const if (remote_port) { lr = port_engine.get_latency_range (remote_port, playback); - if (externally_connected ()) { + if (externally_connected () && 0 == (_flags & TransportMasterPort)) { #if 0 lr.min /= _speed_ratio; lr.max /= _speed_ratio; -- cgit v1.2.3