From 665679b8854d34c13d8eb92167aa8a4691619d8b Mon Sep 17 00:00:00 2001 From: ailurux Date: Fri, 16 Feb 2024 12:55:11 +1100 Subject: WIP: seeking in lua example --- src/audio/audio_source.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/audio/audio_source.cpp') diff --git a/src/audio/audio_source.cpp b/src/audio/audio_source.cpp index 2543db44..d9e8e04a 100644 --- a/src/audio/audio_source.cpp +++ b/src/audio/audio_source.cpp @@ -12,8 +12,9 @@ namespace audio { TaggedStream::TaggedStream(std::shared_ptr t, std::unique_ptr w, + std::string filepath, uint32_t offset) - : codecs::IStream(w->type()), tags_(t), wrapped_(std::move(w)), offset_(offset) {} + : codecs::IStream(w->type()), tags_(t), wrapped_(std::move(w)), filepath_(filepath), offset_(offset) {} auto TaggedStream::tags() -> std::shared_ptr { return tags_; @@ -43,6 +44,10 @@ auto TaggedStream::Offset() -> uint32_t { return offset_; } +auto TaggedStream::Filepath() -> std::string { + return filepath_; +} + auto TaggedStream::SetPreambleFinished() -> void { wrapped_->SetPreambleFinished(); } -- cgit v1.2.3