From 565293ca8c8b3cc6fda8b18a81e721d55a49c01a Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Tue, 25 Jul 2023 19:58:08 +0100 Subject: [PATCH] Attempt at creating audio sync listen EPS8266 --- usermods/audioreactive/audio_reactive.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 74131c91..7398b1ce 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1969,6 +1969,7 @@ class AudioReactive : public Usermod { infoArr.add(uiDomString); if (enabled) { +#ifdef ARDUINO_ARCH_ESP32 // Input Level Slider if (disableSoundProcessing == false) { // only show slider when audio processing is running if (soundAgc > 0) { @@ -1991,7 +1992,7 @@ class AudioReactive : public Usermod { uiDomString += F(" />
"); // infoArr.add(uiDomString); } - +#endif // The following can be used for troubleshooting user errors and is so not enclosed in #ifdef WLED_DEBUG #ifdef ARDUINO_ARCH_ESP32 // current Audio input @@ -2127,9 +2128,11 @@ class AudioReactive : public Usermod { enabled = usermod[FPSTR(_enabled)].as(); if (prevEnabled != enabled) onUpdateBegin(!enabled); } +#ifdef ARDUINO_ARCH_ESP32 if (usermod[FPSTR(_inputLvl)].is()) { inputLevel = min(255,max(0,usermod[FPSTR(_inputLvl)].as())); } +#endif } }