summaryrefslogtreecommitdiff
path: root/src/codecs/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-01-18 14:50:05 +1100
committerjacqueline <me@jacqueline.id.au>2024-01-18 14:50:05 +1100
commit2d7f9fc775c4a959f17f225f5231ec9a40ceaf95 (patch)
tree04a94c9efbf123d07c6e74e619f1eec8dd7eaa62 /src/codecs/include
parent200a43fad309813c3ebbc3da35dbb97367bde7ac (diff)
downloadtangara-fw-2d7f9fc775c4a959f17f225f5231ec9a40ceaf95.tar.gz
calculate length for CBR mp3 files
Diffstat (limited to 'src/codecs/include')
-rw-r--r--src/codecs/include/codec.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp
index 36dda8ff..8aa391b6 100644
--- a/src/codecs/include/codec.hpp
+++ b/src/codecs/include/codec.hpp
@@ -49,6 +49,8 @@ class IStream {
virtual auto CurrentPosition() -> int64_t = 0;
+ virtual auto Size() -> std::optional<int64_t> = 0;
+
/*
* Called by codecs to indicate that they've finished parsing any header data
* within this stream, and are about to begin decoding.