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/audio_source.cpp | |
| parent | a49d754da6c293445be16ac643d10849c01ea96b (diff) | |
| download | tangara-fw-665679b8854d34c13d8eb92167aa8a4691619d8b.tar.gz | |
WIP: seeking in lua example
Diffstat (limited to 'src/audio/audio_source.cpp')
| -rw-r--r-- | src/audio/audio_source.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<database::TrackTags> t, std::unique_ptr<codecs::IStream> 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<database::TrackTags> { 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(); } |
