summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-09 11:22:08 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-09 11:22:08 +1000
commit578c3737f8c07e543b90f964da0e89db1c18bb9a (patch)
tree9463cef1108936bd25c76d17e5f0ea26a6412a36 /src/codecs/codec.cpp
parentf277bd5d0c6fdb9e2c125a2a6cc32675f87056cf (diff)
downloadtangara-fw-578c3737f8c07e543b90f964da0e89db1c18bb9a.tar.gz
Add vorbis support whilst we're here
Diffstat (limited to 'src/codecs/codec.cpp')
-rw-r--r--src/codecs/codec.cpp3
1 files changed, 3 insertions, 0 deletions
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<ICodec*> {
switch (type) {
case StreamType::kMp3:
return new MadMp3Decoder();
+ case StreamType::kVorbis:
+ return new TremorVorbisDecoder();
case StreamType::kFlac:
return new FoxenFlacDecoder();
case StreamType::kOpus: