summaryrefslogtreecommitdiff
path: root/src/audio/include/audio_element.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-16 10:57:55 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-16 10:57:55 +1000
commit4e27de21e49900963ffa61cc9c0a676bb028f992 (patch)
tree8123994d33bc2ff8b5d58a38155b53e401669ae8 /src/audio/include/audio_element.hpp
parent62dce8d9fcc139ca6dc2041c86723d19faab304f (diff)
downloadtangara-fw-4e27de21e49900963ffa61cc9c0a676bb028f992.tar.gz
clean up a bunch of obselete audio code
Diffstat (limited to 'src/audio/include/audio_element.hpp')
-rw-r--r--src/audio/include/audio_element.hpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/audio/include/audio_element.hpp b/src/audio/include/audio_element.hpp
deleted file mode 100644
index 7e3d9d7d..00000000
--- a/src/audio/include/audio_element.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2023 jacqueline <me@jacqueline.id.au>
- *
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-#pragma once
-
-#include <atomic>
-#include <cstdint>
-#include <deque>
-#include <memory>
-#include <vector>
-
-#include "freertos/FreeRTOS.h"
-
-#include "chunk.hpp"
-#include "freertos/message_buffer.h"
-#include "freertos/portmacro.h"
-#include "result.hpp"
-#include "span.hpp"
-
-#include "stream_buffer.hpp"
-#include "stream_event.hpp"
-#include "stream_info.hpp"
-#include "types.hpp"
-
-namespace audio {
-
-static const size_t kEventQueueSize = 8;
-
-/*
- * One indepedentent part of an audio pipeline. Each element has an input and
- * output message stream, and is responsible for taking data from the input
- * stream, applying some kind of transformation to it, then sending the result
- * out via the output stream. All communication with an element should be done
- * over these streams, as an element's methods are only safe to call from the
- * task that owns it.
- *
- * Each element implementation will have its input stream automatically parsed
- * by its owning task, and its various Process* methods will be invoked
- * accordingly. Element implementations are responsible for managing their own
- * writes to their output streams.
- */
-class IAudioElement {
- public:
- IAudioElement() {}
- virtual ~IAudioElement() {}
-
- virtual auto NeedsToProcess() const -> bool = 0;
-
- virtual auto Process(const std::vector<InputStream>& inputs,
- OutputStream* output) -> void = 0;
-};
-
-} // namespace audio