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.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 {};
}