From 47ae601d417d0ef99eb6fe433ef695614d8d2786 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 21 Feb 2023 14:40:18 +1100 Subject: Tidy up pipeline and use arena capacity to test for overruns --- src/audio/audio_element.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/audio/audio_element.cpp') diff --git a/src/audio/audio_element.cpp b/src/audio/audio_element.cpp index 6b04b892..cef54631 100644 --- a/src/audio/audio_element.cpp +++ b/src/audio/audio_element.cpp @@ -6,9 +6,7 @@ namespace audio { IAudioElement::IAudioElement() : input_events_(xQueueCreate(kEventQueueSize, sizeof(void*))), output_events_(nullptr), - unprocessed_output_chunks_(0), - buffered_output_(), - current_state_(STATE_RUN) {} + buffered_output_() {} IAudioElement::~IAudioElement() { // Ensure we don't leak any memory from events leftover in the queue. @@ -28,9 +26,6 @@ IAudioElement::~IAudioElement() { auto IAudioElement::SendOrBufferEvent(std::unique_ptr event) -> bool { - if (event->tag == StreamEvent::ARENA_CHUNK) { - unprocessed_output_chunks_++; - } if (!buffered_output_.empty()) { // To ensure we send data in order, don't try to send if we've already // failed to send something. -- cgit v1.2.3