summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
authorcooljqln <cooljqln@noreply.codeberg.org>2025-08-04 03:39:16 +0200
committercooljqln <cooljqln@noreply.codeberg.org>2025-08-04 03:39:16 +0200
commitdf8fc4104e5ed884f3b52257558191955375d1e7 (patch)
tree8a3b07dc014050c82443ef4b0e83e8de2ebbf24b /src/codecs/codec.cpp
parentb68ac702817316e75270355e19231e04f484cb74 (diff)
parent4887378ce74c27f837fe1939ad5917b221736fac (diff)
downloadtangara-fw-df8fc4104e5ed884f3b52257558191955375d1e7.tar.gz
Merge pull request 'Preliminary ALAC support' (#416) from ayumi/tangara-fw:alac into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/416
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 {};
}