Skip to content

Commit

Permalink
Optimize BufferedTaskStream
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 9, 2023
1 parent 97f1508 commit 040eeb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AudioHttp/URLStreamBuffered.h
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 040eeb9

Please sign in to comment.