Skip to content

Commit 4d9d010

Browse files
h3ndrikearlephilhower
authored andcommitted
Fix webradio to use buffer, not raw input streams
Thanks to @h3ndrik, again.
1 parent 05a78dc commit 4d9d010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/WebRadio/WebRadio.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void StartNewURL()
311311
Serial.printf_P(PSTR("created decoder\n"));
312312
decoder->RegisterStatusCB(StatusCallback, NULL);
313313
Serial.printf_P("Decoder start...\n");
314-
decoder->begin(file, out);
314+
decoder->begin(buff, out);
315315
out->SetGain(((float)volume)/100.0);
316316
if (!decoder->isRunning()) {
317317
Serial.printf_P(PSTR("Can't connect to URL"));

0 commit comments

Comments
 (0)