From 578c3737f8c07e543b90f964da0e89db1c18bb9a Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 9 Aug 2023 11:22:08 +1000 Subject: Add vorbis support whilst we're here --- 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 5e67c0de..9ac20097 100644 --- a/src/codecs/codec.cpp +++ b/src/codecs/codec.cpp @@ -12,6 +12,7 @@ #include "foxenflac.hpp" #include "opus.hpp" #include "mad.hpp" +#include "vorbis.hpp" #include "types.hpp" namespace codecs { @@ -20,6 +21,8 @@ auto CreateCodecForType(StreamType type) -> std::optional { switch (type) { case StreamType::kMp3: return new MadMp3Decoder(); + case StreamType::kVorbis: + return new TremorVorbisDecoder(); case StreamType::kFlac: return new FoxenFlacDecoder(); case StreamType::kOpus: -- cgit v1.2.3