From 730205ded5a5cde21aa2bde98769b51304f1b331 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 23 Nov 2025 00:24:49 +0100 Subject: [PATCH] AR: SR_DMTYPE=254 => UDP sound receive only (experimental) additional dmtype = 254 "driver" that keeps AR enabled in "sound sync only" mode. --- usermods/audioreactive/audio_reactive.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.cpp b/usermods/audioreactive/audio_reactive.cpp index fe73231b..d9e4b445 100644 --- a/usermods/audioreactive/audio_reactive.cpp +++ b/usermods/audioreactive/audio_reactive.cpp @@ -1235,16 +1235,24 @@ class AudioReactive : public Usermod { break; #endif + case 254: // dummy "network receive only" mode + if (audioSource) delete audioSource; audioSource = nullptr; + disableSoundProcessing = true; + audioSyncEnabled = 2; // force udp sound receive mode + enabled = true; + break; + case 255: // 255 = -1 = no audio source // falls through to default default: if (audioSource) delete audioSource; audioSource = nullptr; + disableSoundProcessing = true; enabled = false; break; } delay(250); // give microphone enough time to initialise - if (!audioSource) enabled = false; // audio failed to initialise + if (!audioSource && (dmType != 254)) enabled = false;// audio failed to initialise #endif if (enabled) onUpdateBegin(false); // create FFT task, and initialize network