diff options
| author | Ailurux <ailuruxx@gmail.com> | 2023-06-19 11:21:32 +1000 |
|---|---|---|
| committer | Ailurux <ailuruxx@gmail.com> | 2023-06-19 11:21:32 +1000 |
| commit | 039272455acddbe446269ea4b6ef66f44f457f1e (patch) | |
| tree | 1e9a8173aeb4eb027701e89019e9410a9550d3cb /src/codecs/codec.cpp | |
| parent | 8ce751ad56c7efe19f835e3b6bbb1a843cef9119 (diff) | |
| parent | 6ff8b5886ef91ed46dba08686900d519f6c9c62d (diff) | |
| download | tangara-fw-039272455acddbe446269ea4b6ef66f44f457f1e.tar.gz | |
Merge branch 'main' of https://git.sr.ht/~jacqueline/tangara-fw
Diffstat (limited to 'src/codecs/codec.cpp')
| -rw-r--r-- | src/codecs/codec.cpp | 7 |
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 {}; } |
