summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2023-11-21 15:39:13 +1100
committerailurux <ailuruxx@gmail.com>2023-11-21 15:39:13 +1100
commit5afdb89f9ac63f4892257a4eaf1c65a3b49f3284 (patch)
tree58c8dfdf677a0547109608228ee315eb5b6afcaf
parentd70ec9bf447f7a46e347c3bc5ad58fd88aff46a2 (diff)
downloadtangara-fw-5afdb89f9ac63f4892257a4eaf1c65a3b49f3284.tar.gz
Remove delay from read ahead
-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);