diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-15 19:32:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-15 19:32:21 +0000 |
commit | c4c40340855dff6191a670d3130d65b1e79dc8a0 (patch) | |
tree | 91c79d2dd3c4bb3e2f53c5d303c4ef0877c38526 /libs/ardour/port.cc | |
parent | eee943304c8d7afbb7c92e200670a1ee01c34ab5 (diff) |
fix all manner of things relating to io connections, setting capture alignment, and so on. still needs more tests of actual precise placement of newly recorded material
git-svn-id: svn://localhost/ardour2/branches/3.0@9155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index bd3004ba02..c66995bb3c 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -341,11 +341,11 @@ Port::get_connected_latency_range (jack_latency_range_t& range, bool playback) c range.min = ~((jack_nframes_t) 0); range.max = 0; + DEBUG_TRACE (DEBUG::Latency, string_compose ("%1: %2 connections to check for latency range\n", name(), connections.size())); + for (vector<string>::const_iterator c = connections.begin(); c != connections.end(); ++c) { - cerr << "Connection between " << name() << " and " << *c << endl; - jack_port_t* remote_port = jack_port_by_name (_engine->jack(), (*c).c_str()); jack_latency_range_t lr; @@ -359,15 +359,16 @@ Port::get_connected_latency_range (jack_latency_range_t& range, bool playback) c name(), *c, lr.min, lr.max)); range.min = min (range.min, lr.min); range.max = max (range.max, lr.max); - } else { - cerr << "\t NO PORT BY NAME!\n"; } } } else { + DEBUG_TRACE (DEBUG::Latency, string_compose ("%1: not connected to anything\n", name())); range.min = 0; range.max = 0; } + + DEBUG_TRACE (DEBUG::Latency, string_compose ("%1: final connected latency range [ %2 .. %3 ] \n", name(), range.min, range.max)); } int |