diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-08 20:12:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-08 20:12:40 +0000 |
commit | 34b9883537769758c46b050cb5c1ced63d566c0f (patch) | |
tree | bdae0fc9fd1232f4156d930402dc8bd2429d67a3 /libs/ardour/port.cc | |
parent | 82c794db70b4581c289f7fa72fe4753756016eca (diff) |
lots of stuff related to capture alignment. things appear to be working now, but require the right alignment setting, which doesn't persist correctly at present
git-svn-id: svn://localhost/ardour2/branches/3.0@9107 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index c965f0a6f4..6165196b9d 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -310,7 +310,13 @@ Port::total_latency () const return jack_port_get_total_latency (jack, _jack_port); #else - return 0; + jack_latency_range_t r; + jack_port_get_latency_range (_jack_port, + sends_output() ? JackPlaybackLatency : JackCaptureLatency, + &r); + DEBUG_TRACE (DEBUG::Latency, string_compose ("PORT %1: latency range %2 .. %3\n", + name(), r.min, r.max)); + return r.max; #endif } |