summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-05-16 12:20:50 +1000
committerjacqueline <me@jacqueline.id.au>2024-05-16 12:20:50 +1000
commitc1f7adf22700a268ce16ebcdda49aee6e71b53ff (patch)
tree54505c4b9472de4dd490a925831eb8ec670a2d7b /src/codecs/codec.cpp
parente8f5e73b1a83a4d4742d60fb8cbb3a5642c8c8d5 (diff)
downloadtangara-fw-c1f7adf22700a268ce16ebcdda49aee6e71b53ff.tar.gz
Add a 'decoder' for streams already in our native format
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 c8e1a72c..af5702ff 100644
--- a/src/codecs/codec.cpp
+++ b/src/codecs/codec.cpp
@@ -11,6 +11,7 @@
#include "dr_flac.hpp"
#include "mad.hpp"
+#include "native.hpp"
#include "opus.hpp"
#include "types.hpp"
#include "vorbis.hpp"
@@ -30,6 +31,8 @@ auto StreamTypeToString(StreamType t) -> std::string {
return "Flac";
case StreamType::kOpus:
return "Opus";
+ case StreamType::kNative:
+ return "Native";
default:
return "";
}
@@ -47,6 +50,8 @@ auto CreateCodecForType(StreamType type) -> std::optional<ICodec*> {
return new XiphOpusDecoder();
case StreamType::kWav:
return new WavDecoder();
+ case StreamType::kNative:
+ return new NativeDecoder();
default:
return {};
}