summaryrefslogtreecommitdiff
path: root/src/audio/audio_source.cpp
diff options
context:
space:
mode:
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();
}