diff options
| author | ayumi <ayumi@noreply.codeberg.org> | 2025-01-31 19:08:39 +0100 |
|---|---|---|
| committer | ayumi <ayumi@noreply.codeberg.org> | 2025-03-13 03:29:03 +0100 |
| commit | 885eb1812c15263ad759741ad138cf7188fdf739 (patch) | |
| tree | 24aff12a5d67f77675281fd70c0857164e913331 /src/codecs/codec.cpp | |
| parent | a3639860761dcdb5ef9c31bb34497f32cadd9ff3 (diff) | |
| download | tangara-fw-885eb1812c15263ad759741ad138cf7188fdf739.tar.gz | |
Add WavPack support
Diffstat (limited to 'src/codecs/codec.cpp')
| -rw-r--r-- | src/codecs/codec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<ICodec*> { return new WavDecoder(); case StreamType::kNative: return new NativeDecoder(); + case StreamType::kWavPack: + return new WavPackDecoder(); default: return {}; } |
