set latency range for shadow port.

Not tracked if parent/owner port changes latency
This commit is contained in:
Paul Davis
2016-06-20 12:52:01 -04:00
parent 7f7a5f1c51
commit 0c1c7ec642

View 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;
}