set latency range for shadow port.
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 20 Jun 2016 16:52:01 +0000 (12:52 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:30 +0000 (14:59 -0500)
Not tracked if parent/owner port changes latency

libs/ardour/async_midi_port.cc

index abbe0d900ab57d956de1bc4a7fa41e3cd3ad5645..d79429158596c4a1fe8d8e4a622b4c92b519716c 100644 (file)
@@ -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;
 }