mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
latency computation debugging, part one (of many?)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3266 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0d01255de5
commit
ae08029719
3 changed files with 23 additions and 0 deletions
|
|
@ -2419,6 +2419,10 @@ Route::update_total_latency ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG_LATENCY
|
||||||
|
cerr << _name << ": internal redirect latency = " << _own_latency << endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
set_port_latency (_own_latency);
|
set_port_latency (_own_latency);
|
||||||
|
|
||||||
/* this (virtual) function is used for pure Routes,
|
/* this (virtual) function is used for pure Routes,
|
||||||
|
|
@ -2430,6 +2434,11 @@ Route::update_total_latency ()
|
||||||
|
|
||||||
_own_latency += input_latency ();
|
_own_latency += input_latency ();
|
||||||
|
|
||||||
|
#ifdef DEBUG_LATENCY
|
||||||
|
cerr << _name << ": input latency = " << input_latency() << " total = "
|
||||||
|
<< _own_latency << endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
return _own_latency;
|
return _own_latency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1258,6 +1258,11 @@ Session::update_latency_compensation (bool with_stop, bool abort)
|
||||||
|
|
||||||
_worst_track_latency = 0;
|
_worst_track_latency = 0;
|
||||||
|
|
||||||
|
#define DEBUG_LATENCY
|
||||||
|
#ifdef DEBUG_LATENCY
|
||||||
|
cerr << "\n---------------------------------\nUPDATE LATENCY\n";
|
||||||
|
#endif
|
||||||
|
|
||||||
boost::shared_ptr<RouteList> r = routes.reader ();
|
boost::shared_ptr<RouteList> r = routes.reader ();
|
||||||
|
|
||||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||||
|
|
@ -1278,6 +1283,10 @@ Session::update_latency_compensation (bool with_stop, bool abort)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG_LATENCY
|
||||||
|
cerr << "\tworst was " << _worst_track_latency << endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
|
||||||
(*i)->set_latency_delay (_worst_track_latency);
|
(*i)->set_latency_delay (_worst_track_latency);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,11 @@ Track::update_total_latency ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define DEBUG_LATENCY
|
||||||
|
#ifdef DEBUG_LATENCY
|
||||||
|
cerr << _name << ": internal redirect (final) latency = " << _own_latency << endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
set_port_latency (_own_latency);
|
set_port_latency (_own_latency);
|
||||||
|
|
||||||
return _own_latency;
|
return _own_latency;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue