From 0e04eb918ec976017276306181282769d8896c83 Mon Sep 17 00:00:00 2001 From: ailurux Date: Thu, 11 Jan 2024 05:54:30 +0000 Subject: wav-codec (#13) here is a wav decoder, enjoy! Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/13 Reviewed-by: cooljqln Co-authored-by: ailurux Co-committed-by: ailurux --- src/codecs/include/codec.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/codecs/include/codec.hpp') diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp index 87f6637c..36dda8ff 100644 --- a/src/codecs/include/codec.hpp +++ b/src/codecs/include/codec.hpp @@ -76,6 +76,8 @@ class ICodec { kOutOfInput, // Indicates that the data within the input buffer is fatally malformed. kMalformedData, + // Indicated that the format is unsupported + kUnsupportedFormat, kInternalError, }; @@ -88,6 +90,8 @@ class ICodec { return "malformed data"; case Error::kInternalError: return "internal error"; + case Error::kUnsupportedFormat: + return "unsupported format"; } return "uhh"; } -- cgit v1.2.3