summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
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 {};
}