From a522a981181c9041e30a144c1a8d154199441023 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 15 May 2022 19:32:04 +0200 Subject: [PATCH] Add API to query fixed delay line's delay time --- libs/ardour/ardour/fixed_delay.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ardour/ardour/fixed_delay.h b/libs/ardour/ardour/fixed_delay.h index ab2b597ba1..90bfcebf59 100644 --- a/libs/ardour/ardour/fixed_delay.h +++ b/libs/ardour/ardour/fixed_delay.h @@ -83,6 +83,9 @@ public: /** zero all buffers */ void flush(); + /** @return configured delay time in samples */ + samplecnt_t delay () const { return _delay; } + private: samplecnt_t _max_delay; samplecnt_t _buf_size;