summaryrefslogtreecommitdiff
path: root/libs/ardour/track.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-06-23 16:34:12 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 11:40:53 -0400
commitc6bd03352382094b9d8996c16c1a681c2cb495c3 (patch)
tree6a069c0baa1e2204b0778650a561c188229f612c /libs/ardour/track.cc
parent79abf3dfa6d649fbf1fb6fd16cd489f434d0b909 (diff)
update disk writer input latency at transport stop
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r--libs/ardour/track.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index d1f49fab63..c9f581add2 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -627,9 +627,15 @@ Track::last_capture_sources ()
}
void
-Track::set_capture_offset ()
+Track::update_latency_information ()
{
- _disk_writer->set_capture_offset ();
+ Glib::Threads::RWLock::ReaderLock lr (_processor_lock);
+ framecnt_t chain_latency = _input->latency ();
+
+ for (ProcessorList::iterator p = _processors.begin(); p != _processors.end(); ++p) {
+ (*p)->set_input_latency (chain_latency);
+ chain_latency += (*p)->signal_latency ();
+ }
}
std::string