summaryrefslogtreecommitdiff
path: root/src/codecs/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/codecs/include')
-rw-r--r--src/codecs/include/mad.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp
index d1d0aac5..f45b5331 100644
--- a/src/codecs/include/mad.hpp
+++ b/src/codecs/include/mad.hpp
@@ -37,7 +37,15 @@ class MadMp3Decoder : public ICodec {
private:
auto SkipID3Tags(IStream& stream) -> void;
- auto GetVbrLength(const mad_header& header) -> std::optional<uint32_t>;
+
+ struct VbrInfo {
+ uint32_t length;
+ std::optional<uint32_t> bytes;
+ std::optional<std::span<const unsigned char, 100>> toc;
+ };
+
+ auto GetVbrInfo(const mad_header& header) -> std::optional<VbrInfo>;
+
auto GetBytesUsed() -> std::size_t;
std::shared_ptr<IStream> input_;