diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-16 10:57:55 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-16 10:57:55 +1000 |
| commit | 4e27de21e49900963ffa61cc9c0a676bb028f992 (patch) | |
| tree | 8123994d33bc2ff8b5d58a38155b53e401669ae8 /src/audio/include/stream_event.hpp | |
| parent | 62dce8d9fcc139ca6dc2041c86723d19faab304f (diff) | |
| download | tangara-fw-4e27de21e49900963ffa61cc9c0a676bb028f992.tar.gz | |
clean up a bunch of obselete audio code
Diffstat (limited to 'src/audio/include/stream_event.hpp')
| -rw-r--r-- | src/audio/include/stream_event.hpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/audio/include/stream_event.hpp b/src/audio/include/stream_event.hpp deleted file mode 100644 index d98d9baa..00000000 --- a/src/audio/include/stream_event.hpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2023 jacqueline <me@jacqueline.id.au> - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -#include <memory> - -#include "arena.hpp" -#include "freertos/FreeRTOS.h" -#include "freertos/queue.h" - -#include "span.hpp" -#include "stream_info.hpp" - -namespace audio { - -struct StreamEvent { - static auto CreateStreamInfo(QueueHandle_t source, const StreamInfo& payload) - -> StreamEvent*; - static auto CreateArenaChunk(QueueHandle_t source, memory::ArenaPtr ptr) - -> StreamEvent*; - static auto CreateChunkNotification(QueueHandle_t source) -> StreamEvent*; - static auto CreateEndOfStream(QueueHandle_t source) -> StreamEvent*; - static auto CreateLogStatus() -> StreamEvent*; - - StreamEvent(); - ~StreamEvent(); - StreamEvent(StreamEvent&&); - - QueueHandle_t source; - - enum { - UNINITIALISED, - STREAM_INFO, - ARENA_CHUNK, - CHUNK_NOTIFICATION, - END_OF_STREAM, - LOG_STATUS, - } tag; - - union { - StreamInfo* stream_info; - - memory::ArenaPtr arena_chunk; - - // FIXME: It would be nice to also support a pointer to himem data here, to - // save a little ordinary heap space. - }; - - StreamEvent(const StreamEvent&) = delete; - StreamEvent& operator=(const StreamEvent&) = delete; -}; - -} // namespace audio |
