summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-20 20:25:04 +0200
committerRobin Gareus <robin@gareus.org>2019-09-20 21:27:16 +0200
commite8822e76d605cd49e758225081bcef339de58224 (patch)
tree7bd6880b7a80203092a1c9543a2887eb3c4ea039 /libs/ardour/route.cc
parent361727716f873d1642adb9c5dfc7b882bd599b1f (diff)
Add abstract API for latency compensated sends
This is in preparation for MixbusSends that are not derived from Delivery : IOProcessor.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 962f23bda1..49d8172829 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -4115,7 +4115,7 @@ Route::update_signal_latency (bool apply_to_delayline)
samplecnt_t l_in = 0;
samplecnt_t l_out = _output->effective_latency ();
for (ProcessorList::reverse_iterator i = _processors.rbegin(); i != _processors.rend(); ++i) {
- if (boost::shared_ptr<Send> snd = boost::dynamic_pointer_cast<Send> (*i)) {
+ if (boost::shared_ptr<LatentSend> snd = boost::dynamic_pointer_cast<LatentSend> (*i)) {
snd->set_delay_in (l_out + _output->latency());
}
@@ -4155,6 +4155,7 @@ Route::update_signal_latency (bool apply_to_delayline)
snd->output ()->set_private_port_latencies (capt_lat_in + l_in, false);
/* take send-target's playback latency into account */
snd->set_delay_out (snd->output ()->connected_latency (true));
+ /* InternalReturn::set_playback_offset() below, also calls set_delay_out() */
}
}