From 397aee8c19b60b8bf8b673c7cf2733ca9a7421f6 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Fri, 15 Dec 2017 22:18:23 -0800 Subject: [PATCH] Actually change volume in the HandleVolue callback --- examples/WebRadio/WebRadio.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/WebRadio/WebRadio.ino b/examples/WebRadio/WebRadio.ino index c0da4be..94fb649 100644 --- a/examples/WebRadio/WebRadio.ino +++ b/examples/WebRadio/WebRadio.ino @@ -138,6 +138,7 @@ void HandleVolume(WiFiClient *client, char *params) ParamInt("vol", volume); } Serial.printf_P(PSTR("Set volume: %d\n"), volume); + out->SetGain(((float)volume)/100.0); RedirectToIndex(client); }