summaryrefslogtreecommitdiff
path: root/src/codecs/include
diff options
context:
space:
mode:
authorcooljqln <cooljqln@noreply.codeberg.org>2025-01-09 04:52:38 +0000
committercooljqln <cooljqln@noreply.codeberg.org>2025-01-09 04:52:38 +0000
commitfaf52c162f98fb78907ab7028e997ef3d316f393 (patch)
treecd0631b047e8b09fbd61ea85ad1a67aa55929a25 /src/codecs/include
parent829d033a448107f1bc610cf735ce9f7222de564b (diff)
parentfaa62e0c60d51a9df88002a59825b427323259c0 (diff)
downloadtangara-fw-faf52c162f98fb78907ab7028e997ef3d316f393.tar.gz
Merge pull request 'Add bitrate info' (#172) from tjk/tangara-fw:bitrate into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/172 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
Diffstat (limited to 'src/codecs/include')
-rw-r--r--src/codecs/include/codec.hpp1
-rw-r--r--src/codecs/include/mad.hpp2
2 files changed, 2 insertions, 1 deletions
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<uint32_t> total_samples;
+ std::optional<uint32_t> 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<uint32_t>;
struct VbrInfo {
uint32_t length;