From a3c2f4a0ecd5ac3a70afc4f14cce7a87cde88cf3 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 2 Jan 2023 20:34:13 +0100 Subject: [PATCH] fixing UDP sound sync startup problems sometimes sound sync only worked after disable + enable audioreactive. This hopefully improves the situation. --- usermods/audioreactive/audio_reactive.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index 48026b9d..2d32d622 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1373,6 +1373,10 @@ class AudioReactive : public Usermod { USER_PRINTLN(F("AR: sound input driver initialized successfully.")); } + // try to start UDP + last_UDPTime = 0; + receivedFormat = 0; + delay(100); if (enabled) connectUDPSoundSync(); initDone = true; }