From 8aa4ae825dc99a8112deb9d27664504a04330b94 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Apr 2020 07:25:32 +0200 Subject: Skip delayline updates if no change is required --- libs/ardour/ardour/route.h | 2 +- libs/ardour/ardour/session.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index c9bd8492d7..788d669e55 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -346,7 +346,7 @@ public: */ bool remove_sidechain (boost::shared_ptr proc) { return add_remove_sidechain (proc, false); } - samplecnt_t update_signal_latency (bool apply_to_delayline = false); + samplecnt_t update_signal_latency (bool apply_to_delayline = false, bool* delayline_update_needed = NULL); virtual void apply_latency_compensation (); samplecnt_t set_private_port_latencies (bool playback) const; diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index ac50c07a29..b9ced0bd85 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1342,7 +1342,7 @@ private: void remove_monitor_section (); void update_latency (bool playback); - bool update_route_latency (bool reverse, bool apply_to_delayline); + bool update_route_latency (bool reverse, bool apply_to_delayline, bool* delayline_update_needed); void initialize_latencies (); void set_worst_output_latency (); void set_worst_input_latency (); -- cgit v1.2.3