summaryrefslogtreecommitdiff
path: root/src/codecs/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-07-07 18:26:10 +1000
committerjacqueline <me@jacqueline.id.au>2023-07-07 18:26:10 +1000
commit8f8bc1f088b389a683735d626cbce9adb1f6dc17 (patch)
tree215b669021d778b4b64a38cab662b041142d5957 /src/codecs/include
parent739f495fe26e7bd291e545f50b27c185991dcfbc (diff)
downloadtangara-fw-8f8bc1f088b389a683735d626cbce9adb1f6dc17.tar.gz
vbr-compatible mp3 duration :)
Diffstat (limited to 'src/codecs/include')
-rw-r--r--src/codecs/include/mad.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp
index d2643230..fbae560c 100644
--- a/src/codecs/include/mad.hpp
+++ b/src/codecs/include/mad.hpp
@@ -42,6 +42,8 @@ class MadMp3Decoder : public ICodec {
-> Result<void> override;
private:
+ auto GetVbrLength(const mad_header& header) -> std::optional<uint32_t>;
+
mad_stream stream_;
mad_frame frame_;
mad_synth synth_;