summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-01-11 05:54:30 +0000
committercooljqln <cooljqln@noreply.codeberg.org>2024-01-11 05:54:30 +0000
commit0e04eb918ec976017276306181282769d8896c83 (patch)
tree562da509df2ab03d3906cf3c0f56063f6acc9865 /src/codecs/codec.cpp
parent55bde70b9651b411ac0135bd4704f5b6972ea799 (diff)
downloadtangara-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.cpp5
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 {};
}