From 31c39ed8696658a0b4d4d7dc7e4ab5880bcecd4d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 26 Apr 2020 21:34:26 +0200 Subject: Remove duplicate i/o latency calculation Port and connection changes always imply a latency_callback from the engine. Worst I/O latency is updated directly in Session::update_latency() which is called from AudioEngine::latency_callback. Explicit subscriptions to route->output()->changed() is not needed to update the worst I/O latency. Only set_block_size() needs to to update the I/O latency when the buffer-size changes. --- libs/ardour/ardour/session.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'libs/ardour/ardour/session.h') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index b9c875c95c..ac50c07a29 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1343,14 +1343,11 @@ private: void update_latency (bool playback); bool update_route_latency (bool reverse, bool apply_to_delayline); - void initialize_latencies (); - void set_worst_io_latencies (); void set_worst_output_latency (); void set_worst_input_latency (); void send_latency_compensation_change (); - void set_worst_io_latencies_x (IOChange, void *); void ensure_buffers (ChanCount howmany = ChanCount::ZERO); -- cgit v1.2.3