From faa62e0c60d51a9df88002a59825b427323259c0 Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Mon, 6 Jan 2025 20:53:02 -0800 Subject: Add bitrate info --- src/codecs/include/codec.hpp | 1 + src/codecs/include/mad.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/codecs/include') diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp index 4d588a98..6ff7a267 100644 --- a/src/codecs/include/codec.hpp +++ b/src/codecs/include/codec.hpp @@ -106,6 +106,7 @@ class ICodec { uint8_t num_channels; uint32_t sample_rate_hz; std::optional total_samples; + std::optional bitrate_kbps; bool operator==(const OutputFormat&) const = default; }; diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp index f45b5331..e28e32c8 100644 --- a/src/codecs/include/mad.hpp +++ b/src/codecs/include/mad.hpp @@ -36,7 +36,7 @@ class MadMp3Decoder : public ICodec { MadMp3Decoder& operator=(const MadMp3Decoder&) = delete; private: - auto SkipID3Tags(IStream& stream) -> void; + auto SkipID3Tags(IStream& stream) -> std::optional; struct VbrInfo { uint32_t length; -- cgit v1.2.3