From 885eb1812c15263ad759741ad138cf7188fdf739 Mon Sep 17 00:00:00 2001 From: ayumi Date: Fri, 31 Jan 2025 19:08:39 +0100 Subject: Add WavPack support --- src/codecs/codec.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/codecs/codec.cpp') diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp index af5702ff..4ddb16ad 100644 --- a/src/codecs/codec.cpp +++ b/src/codecs/codec.cpp @@ -16,6 +16,7 @@ #include "types.hpp" #include "vorbis.hpp" #include "wav.hpp" +#include "wavpack.hpp" namespace codecs { @@ -33,6 +34,8 @@ auto StreamTypeToString(StreamType t) -> std::string { return "Opus"; case StreamType::kNative: return "Native"; + case StreamType::kWavPack: + return "WavPack"; default: return ""; } @@ -52,6 +55,8 @@ auto CreateCodecForType(StreamType type) -> std::optional { return new WavDecoder(); case StreamType::kNative: return new NativeDecoder(); + case StreamType::kWavPack: + return new WavPackDecoder(); default: return {}; } -- cgit v1.2.3