Skip to content

Commit

Permalink
Fix webradio to use buffer, not raw input streams
Browse files Browse the repository at this point in the history
Thanks to @h3ndrik, again.
  • Loading branch information
h3ndrik authored and earlephilhower committed Feb 1, 2018
1 parent 05a78dc commit 4d9d010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/WebRadio/WebRadio.ino
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void StartNewURL()
Serial.printf_P(PSTR("created decoder\n"));
decoder->RegisterStatusCB(StatusCallback, NULL);
Serial.printf_P("Decoder start...\n");
decoder->begin(file, out);
decoder->begin(buff, out);
out->SetGain(((float)volume)/100.0);
if (!decoder->isRunning()) {
Serial.printf_P(PSTR("Can't connect to URL"));
Expand Down

0 comments on commit 4d9d010

Please sign in to comment.