We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8dd35a commit 0df71d1Copy full SHA for 0df71d1
1 file changed
examples/WebRadioDemo/WebRadioDemo.ino
@@ -82,7 +82,8 @@ const char *host = "comet.shoutca.st";
82
const char *path = "/1";
83
int httpPort = 8563;
84
85
-uint8_t mp3buff[32];
+// The buffer size 64 seems to be optimal. At 32 and 128 the sound might be brassy.
86
+uint8_t mp3buff[64];
87
88
void setup () {
89
Serial.begin(115200);
@@ -139,7 +140,8 @@ void loop() {
139
140
}
141
142
if(client.available() > 0){
- uint8_t bytesread = client.read(mp3buff, 32);
143
+ // The buffer size 64 seems to be optimal. At 32 and 128 the sound might be brassy.
144
+ uint8_t bytesread = client.read(mp3buff, 64);
145
player.playChunk(mp3buff, bytesread);
146
147
0 commit comments