diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-02-21 14:40:18 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-02-21 14:40:18 +1100 |
| commit | 47ae601d417d0ef99eb6fe433ef695614d8d2786 (patch) | |
| tree | f536ecc214c012c0d69b3a8d350a7a1cadb2f671 /src/audio/audio_element.cpp | |
| parent | 941bafca17b13547a88668b787ce4c8e064ef7ff (diff) | |
| download | tangara-fw-47ae601d417d0ef99eb6fe433ef695614d8d2786.tar.gz | |
Tidy up pipeline and use arena capacity to test for overruns
Diffstat (limited to 'src/audio/audio_element.cpp')
| -rw-r--r-- | src/audio/audio_element.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<StreamEvent> 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. |
