summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audio/readahead_source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/readahead_source.cpp b/src/audio/readahead_source.cpp
index 41d38eee..35c5314f 100644
--- a/src/audio/readahead_source.cpp
+++ b/src/audio/readahead_source.cpp
@@ -48,7 +48,7 @@ auto ReadaheadSource::Read(cpp::span<std::byte> dest) -> ssize_t {
// or the destination is full.
while (!dest.empty() && (is_refilling_ || !xStreamBufferIsEmpty(buffer_))) {
size_t bytes_read = xStreamBufferReceive(buffer_, dest.data(),
- dest.size_bytes(), portMAX_DELAY);
+ dest.size_bytes(), 1);
tell_ += bytes_read;
bytes_written += bytes_read;
dest = dest.subspan(bytes_read);