- /* port belongs to this instance of ardour,
- so look up its latency information
- internally, because our published/public
- values already contain our plugin
- latency compensation.
- */
-
- boost::shared_ptr<Port> remote_port = AudioEngine::instance()->get_port_by_name (*c);
- if (remote_port) {
- lr = remote_port->private_latency_range ((playback ? JackPlaybackLatency : JackCaptureLatency));
- DEBUG_TRACE (DEBUG::Latency, string_compose (
- "\t%1 <-LOCAL-> %2 : latter has latency range %3 .. %4\n",
- name(), *c, lr.min, lr.max));
-
- range.min = min (range.min, lr.min);
- range.max = max (range.max, lr.max);
- }
- }
+ /* port belongs to this instance of ardour,
+ so look up its latency information
+ internally, because our published/public
+ values already contain our plugin
+ latency compensation.
+ */
+
+ boost::shared_ptr<Port> remote_port = AudioEngine::instance()->get_port_by_name (*c);
+ if (remote_port) {
+ lr = remote_port->private_latency_range ((playback ? true : false));
+ DEBUG_TRACE (DEBUG::Latency, string_compose (
+ "\t%1 <-LOCAL-> %2 : latter has latency range %3 .. %4\n",
+ name(), *c, lr.min, lr.max));
+
+ range.min = min (range.min, lr.min);
+ range.max = max (range.max, lr.max);
+ }
+ }