summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
authorayumi <ayumi@noreply.codeberg.org>2025-07-22 09:27:29 +0200
committerayumi <ayumi@noreply.codeberg.org>2025-08-01 20:03:21 +0200
commit4887378ce74c27f837fe1939ad5917b221736fac (patch)
tree8a3b07dc014050c82443ef4b0e83e8de2ebbf24b /src/codecs/codec.cpp
parentb68ac702817316e75270355e19231e04f484cb74 (diff)
downloadtangara-fw-4887378ce74c27f837fe1939ad5917b221736fac.tar.gz
Preliminary ALAC support
Diffstat (limited to 'src/codecs/codec.cpp')
-rw-r--r--src/codecs/codec.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp
index 4ddb16ad..071c9778 100644
--- a/src/codecs/codec.cpp
+++ b/src/codecs/codec.cpp
@@ -9,6 +9,7 @@
#include <memory>
#include <optional>
+#include "alac.hpp"
#include "dr_flac.hpp"
#include "mad.hpp"
#include "native.hpp"
@@ -36,6 +37,8 @@ auto StreamTypeToString(StreamType t) -> std::string {
return "Native";
case StreamType::kWavPack:
return "WavPack";
+ case StreamType::kAlac:
+ return "ALAC";
default:
return "";
}
@@ -57,6 +60,8 @@ auto CreateCodecForType(StreamType type) -> std::optional<ICodec*> {
return new NativeDecoder();
case StreamType::kWavPack:
return new WavPackDecoder();
+ case StreamType::kAlac:
+ return new AlacDecoder();
default:
return {};
}