diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-07 13:32:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-07 13:32:28 +0200 |
commit | 4420f9502662253b3c25a2df246c4dc0dac2ab50 (patch) | |
tree | 7071cc518dbeb81cc1db3c6d8e47715f2e418f85 /libs/ardour | |
parent | 1ee6b6329971ea65aeb3f0f0478ec99670878f54 (diff) |
Further tweak ambiguous latency check
Ignore latency of async ports (Virtual Keyboard in particular),
and only consider ardour's own ports.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/port_manager.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 51d249721a..d98b6a83b6 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -1382,9 +1382,14 @@ PortManager::check_for_ambiguous_latency (bool log) const boost::shared_ptr<Ports> plist = ports.reader(); for (Ports::iterator pi = plist->begin(); pi != plist->end(); ++pi) { boost::shared_ptr<Port> const& p (pi->second); - if (! p->sends_output ()) { + if (! p->sends_output () || (p->flags () & IsTerminal)) { continue; } + if (boost::dynamic_pointer_cast<AsyncMIDIPort>(p)) { + continue; + } + assert (port_is_mine (p->name ())); + LatencyRange range; p->get_connected_latency_range (range, true); if (range.min != range.max) { |