summaryrefslogtreecommitdiff
path: root/src/codecs/include/ogg.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-09 12:00:02 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-09 12:00:02 +1000
commit67caeb6e3cda44205ba8fe783274b20dc7ea216e (patch)
treea2504d177c60e69808073236af8303517cf8fb66 /src/codecs/include/ogg.hpp
parent578c3737f8c07e543b90f964da0e89db1c18bb9a (diff)
downloadtangara-fw-67caeb6e3cda44205ba8fe783274b20dc7ea216e.tar.gz
Use opusfile instead of working directly with ogg and opus
Diffstat (limited to 'src/codecs/include/ogg.hpp')
-rw-r--r--src/codecs/include/ogg.hpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/codecs/include/ogg.hpp b/src/codecs/include/ogg.hpp
deleted file mode 100644
index a27e961e..00000000
--- a/src/codecs/include/ogg.hpp
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 jacqueline <me@jacqueline.id.au>
- *
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-#pragma once
-
-#include <sys/_stdint.h>
-#include <cstddef>
-#include <cstdint>
-#include <optional>
-
-#include "ogg/ogg.h"
-#include "span.hpp"
-
-namespace codecs {
-
-class OggContainer {
- public:
- OggContainer();
- ~OggContainer();
-
- auto AddBytes(cpp::span<const std::byte>) -> bool;
-
- auto Next() -> bool;
- auto Current() -> cpp::span<uint8_t>;
- auto HasPacket() -> bool;
-
- private:
- auto AdvancePage() -> bool;
- auto AdvancePacket() -> bool;
-
- ogg_sync_state sync_;
- ogg_stream_state stream_;
- ogg_page page_;
- ogg_packet packet_;
-
- bool has_stream_;
- bool has_packet_;
-};
-
-} // namespace codecs \ No newline at end of file