From c51709f99ff5456a5863ca39ff893f823a3642d4 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 12 Sep 2024 10:44:26 +1000 Subject: Pause and unpause the current audio output in response to TTS --- src/drivers/include/drivers/pcm_buffer.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/drivers/include') diff --git a/src/drivers/include/drivers/pcm_buffer.hpp b/src/drivers/include/drivers/pcm_buffer.hpp index 4e5fa041..6b38be94 100644 --- a/src/drivers/include/drivers/pcm_buffer.hpp +++ b/src/drivers/include/drivers/pcm_buffer.hpp @@ -49,6 +49,7 @@ class PcmBuffer { auto clear() -> void; auto isEmpty() -> bool; + auto suspend(bool) -> void; /* * How many samples have been added to this buffer since it was created. This @@ -75,6 +76,8 @@ class PcmBuffer { std::atomic sent_; std::atomic received_; + std::atomic suspended_; + RingbufHandle_t ringbuf_; }; -- cgit v1.2.3