From 574691d3cd888f253fe3d147c3f2a8183685d88c Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sun, 15 Nov 2020 14:46:11 +0100 Subject: [PATCH] Add a helper to check whether the transport plays --- src/sfizz/BeatClock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sfizz/BeatClock.h b/src/sfizz/BeatClock.h index cccc76e8..880c2134 100644 --- a/src/sfizz/BeatClock.h +++ b/src/sfizz/BeatClock.h @@ -110,6 +110,10 @@ public: * @brief Set whether the clock is ticking or stopped. */ void setPlaying(unsigned delay, bool playing); + /** + * Check whether the clock is currently ticking. + */ + bool isPlaying() const noexcept { return isPlaying_; } /** * @brief Get the beat number for each frame of the current cycle. *