From 91bc21cb759a48986071712de55d460a4e70c8be Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 16 Jul 2022 10:07:13 -0400 Subject: [PATCH] Aidwindows Init Cycle error (#6371) the Airwindos Init Cycle would mis-re-initialize type during the very first process block. This caused problems when dragging and dropping airwindows. So, instead, don't do that. Closes #6300 --- src/common/dsp/effects/airwindows/AirWindowsEffect.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp b/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp index 6065e53d1e8..8805154a6c7 100644 --- a/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp +++ b/src/common/dsp/effects/airwindows/AirWindowsEffect.cpp @@ -185,6 +185,10 @@ void AirWindowsEffect::process(float *dataL, float *dataR) hasInvalidated = true; } + // Once we are setup, an fx type of 0 is just an init cycle mistake + if (*(pdata_ival[0]) == 0 && fxdata->p[0].user_data) + return; + if (!airwin || *(pdata_ival[0]) != lastSelected || fxdata->p[0].user_data == nullptr) { /*