From c1f7adf22700a268ce16ebcdda49aee6e71b53ff Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 16 May 2024 12:20:50 +1000 Subject: Add a 'decoder' for streams already in our native format --- src/codecs/codec.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/codecs/codec.cpp') 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 { return new XiphOpusDecoder(); case StreamType::kWav: return new WavDecoder(); + case StreamType::kNative: + return new NativeDecoder(); default: return {}; } -- cgit v1.2.3