From 0c1c7ec64261ec6d9da1fd51b25151ab036e8672 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Jun 2016 12:52:01 -0400 Subject: [PATCH] set latency range for shadow port. Not tracked if parent/owner port changes latency --- libs/ardour/async_midi_port.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index abbe0d900a..d794291585 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -371,5 +371,13 @@ AsyncMIDIPort::add_shadow_port (string const & name, MidiFilter mf) return -3; } + /* forward on our port latency to the shadow port. + + XXX: need to capture latency changes and forward them too. + */ + + LatencyRange latency = private_latency_range (false); + shadow_port->set_private_latency_range (latency, false); + return 0; }