summaryrefslogtreecommitdiff
path: root/src/audio/audio_source.cpp
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-02-16 12:55:11 +1100
committerailurux <ailuruxx@gmail.com>2024-02-16 12:55:11 +1100
commit665679b8854d34c13d8eb92167aa8a4691619d8b (patch)
treedd2edb34f09f198357efb1e0a7e6f5e81443c022 /src/audio/audio_source.cpp
parenta49d754da6c293445be16ac643d10849c01ea96b (diff)
downloadtangara-fw-665679b8854d34c13d8eb92167aa8a4691619d8b.tar.gz
WIP: seeking in lua example
Diffstat (limited to 'src/audio/audio_source.cpp')
-rw-r--r--src/audio/audio_source.cpp7
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();
}