summaryrefslogtreecommitdiff
path: root/src/audio/fatfs_audio_input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/fatfs_audio_input.cpp')
-rw-r--r--src/audio/fatfs_audio_input.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/fatfs_audio_input.cpp b/src/audio/fatfs_audio_input.cpp
index 6580f301..5594718f 100644
--- a/src/audio/fatfs_audio_input.cpp
+++ b/src/audio/fatfs_audio_input.cpp
@@ -85,7 +85,7 @@ auto FatfsAudioInput::HasNewStream() -> bool {
return has_new_stream_;
}
-auto FatfsAudioInput::NextStream() -> std::shared_ptr<codecs::IStream> {
+auto FatfsAudioInput::NextStream() -> std::shared_ptr<TaggedStream> {
while (true) {
has_new_stream_.wait(false);
@@ -147,8 +147,7 @@ auto FatfsAudioInput::OpenFile(const std::pmr::string& path) -> bool {
auto source =
std::make_unique<FatfsSource>(stream_type.value(), std::move(file));
- // new_stream_.reset(new ReadaheadSource(bg_worker_, std::move(source)));
- new_stream_ = std::move(source);
+ new_stream_.reset(new TaggedStream(tags, std::move(source)));
return true;
}