summaryrefslogtreecommitdiff
path: root/src/audio/fatfs_audio_input.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-20 11:04:20 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-20 11:04:20 +1100
commitb3b512f10e0570f7dc8a04e1613f1234e5532728 (patch)
treed8861607af715c09321165b76d57a4c58e232088 /src/audio/fatfs_audio_input.cpp
parentd36f314a57b5136f6a7dabfa6cb78a16f1994f4f (diff)
downloadtangara-fw-b3b512f10e0570f7dc8a04e1613f1234e5532728.tar.gz
Don't start readahead until parsing the stream's header is finished
...but also disable readahead for now anyway, since it's unstable
Diffstat (limited to 'src/audio/fatfs_audio_input.cpp')
-rw-r--r--src/audio/fatfs_audio_input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/fatfs_audio_input.cpp b/src/audio/fatfs_audio_input.cpp
index e13ae793..6580f301 100644
--- a/src/audio/fatfs_audio_input.cpp
+++ b/src/audio/fatfs_audio_input.cpp
@@ -147,7 +147,8 @@ 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_.reset(new ReadaheadSource(bg_worker_, std::move(source)));
+ new_stream_ = std::move(source);
return true;
}