diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-16 12:55:11 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-16 12:55:11 +1100 |
| commit | 665679b8854d34c13d8eb92167aa8a4691619d8b (patch) | |
| tree | dd2edb34f09f198357efb1e0a7e6f5e81443c022 /src/audio/include/audio_source.hpp | |
| parent | a49d754da6c293445be16ac643d10849c01ea96b (diff) | |
| download | tangara-fw-665679b8854d34c13d8eb92167aa8a4691619d8b.tar.gz | |
WIP: seeking in lua example
Diffstat (limited to 'src/audio/include/audio_source.hpp')
| -rw-r--r-- | src/audio/include/audio_source.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/audio/include/audio_source.hpp b/src/audio/include/audio_source.hpp index b2fd173d..b38acd7a 100644 --- a/src/audio/include/audio_source.hpp +++ b/src/audio/include/audio_source.hpp @@ -17,7 +17,9 @@ class TaggedStream : public codecs::IStream { public: TaggedStream(std::shared_ptr<database::TrackTags>, std::unique_ptr<codecs::IStream> wrapped, - uint32_t offset = 0); + std::string path, + uint32_t offset = 0 + ); auto tags() -> std::shared_ptr<database::TrackTags>; @@ -33,11 +35,14 @@ class TaggedStream : public codecs::IStream { auto Offset() -> uint32_t; + auto Filepath() -> std::string; + auto SetPreambleFinished() -> void override; private: std::shared_ptr<database::TrackTags> tags_; std::unique_ptr<codecs::IStream> wrapped_; + std::string filepath_; int32_t offset_; }; |
