diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-07 15:12:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-07 15:12:57 +0200 |
commit | 4fa955baf29d1d4d9d94f8ff49ecfe99c2dee1e3 (patch) | |
tree | efd34e483d36036322ee2ed65467cd539550357e /libs/ardour | |
parent | 8967df460a933a64b1ecbe122aaf8e86146832e0 (diff) |
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.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/port.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; |