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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp
index 73bc9032..e23b8702 100644
--- a/src/codecs/codec.cpp
+++ b/src/codecs/codec.cpp
@@ -8,7 +8,10 @@
#include <memory>
#include <optional>
+
+#include "foxenflac.hpp"
#include "mad.hpp"
+#include "stbvorbis.hpp"
#include "types.hpp"
namespace codecs {
@@ -17,6 +20,10 @@ auto CreateCodecForType(StreamType type) -> std::optional<ICodec*> {
switch (type) {
case StreamType::kMp3:
return new MadMp3Decoder();
+ case StreamType::kFlac:
+ return new FoxenFlacDecoder();
+ case StreamType::kVorbis:
+ return new StbVorbisDecoder();
default:
return {};
}