From 040eeb90e60c23f219b3016c59068822f15d84f1 Mon Sep 17 00:00:00 2001 From: Phil Schatzmann Date: Thu, 9 Nov 2023 15:36:58 +0100 Subject: [PATCH] Optimize BufferedTaskStream --- src/AudioHttp/URLStreamBuffered.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AudioHttp/URLStreamBuffered.h b/src/AudioHttp/URLStreamBuffered.h index 3b09333c4e..e4ae903585 100644 --- a/src/AudioHttp/URLStreamBuffered.h +++ b/src/AudioHttp/URLStreamBuffered.h @@ -119,7 +119,8 @@ class BufferedTaskStream : public AudioStream { } } else { - delay(100); + // 3ms at 44100 stereo is about 529.2 bytes + delay(3); } // buffer is full we start to provide data if (available_to_write==0){