From d26d8c91a027751c5c77cae76d0e04a82b50deb7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 23 Apr 2021 17:38:16 -0600 Subject: [PATCH] fix per-processor latency to reflect transport direction --- libs/ardour/route.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index c82ddaf428..1df017fcad 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -525,7 +525,11 @@ Route::process_output_buffers (BufferSet& bufs, */ if ((*i)->active ()) { - latency += (*i)->effective_latency (); + if (speed < 0) { + latency -= (*i)->effective_latency (); + } else { + latency += (*i)->effective_latency (); + } } if (speed < 0) {