diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-01-11 05:54:30 +0000 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2024-01-11 05:54:30 +0000 |
| commit | 0e04eb918ec976017276306181282769d8896c83 (patch) | |
| tree | 562da509df2ab03d3906cf3c0f56063f6acc9865 /src/codecs/codec.cpp | |
| parent | 55bde70b9651b411ac0135bd4704f5b6972ea799 (diff) | |
| download | tangara-fw-0e04eb918ec976017276306181282769d8896c83.tar.gz | |
wav-codec (#13)
here is a wav decoder, enjoy!
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/13
Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
Co-authored-by: ailurux <ailuruxx@gmail.com>
Co-committed-by: ailurux <ailuruxx@gmail.com>
Diffstat (limited to 'src/codecs/codec.cpp')
| -rw-r--r-- | src/codecs/codec.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp index d81d4b05..7bc591aa 100644 --- a/src/codecs/codec.cpp +++ b/src/codecs/codec.cpp @@ -14,6 +14,7 @@ #include "opus.hpp" #include "types.hpp" #include "vorbis.hpp" +#include "wav.hpp" namespace codecs { @@ -21,7 +22,7 @@ auto StreamTypeToString(StreamType t) -> std::string { switch (t) { case StreamType::kMp3: return "Mp3"; - case StreamType::kPcm: + case StreamType::kWav: return "Wav"; case StreamType::kVorbis: return "Vorbis"; @@ -44,6 +45,8 @@ auto CreateCodecForType(StreamType type) -> std::optional<ICodec*> { return new MiniFlacDecoder(); case StreamType::kOpus: return new XiphOpusDecoder(); + case StreamType::kWav: + return new WavDecoder(); default: return {}; } |
