From 6c3501dbcbd1095293d8a4d4b83311e94a7df9a8 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 8 Aug 2023 22:16:31 +1000 Subject: Flesh out opus decoder. it doesn't work! i hate opus. --- src/codecs/codec.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/codecs/codec.cpp') diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp index 404ea214..5e67c0de 100644 --- a/src/codecs/codec.cpp +++ b/src/codecs/codec.cpp @@ -10,6 +10,7 @@ #include #include "foxenflac.hpp" +#include "opus.hpp" #include "mad.hpp" #include "types.hpp" @@ -21,6 +22,8 @@ auto CreateCodecForType(StreamType type) -> std::optional { return new MadMp3Decoder(); case StreamType::kFlac: return new FoxenFlacDecoder(); + case StreamType::kOpus: + return new XiphOpusDecoder(); default: return {}; } -- cgit v1.2.3