Skip to content

Commit

Permalink
Aidwindows Init Cycle error (surge-synthesizer#6371)
Browse files Browse the repository at this point in the history
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 surge-synthesizer#6300
  • Loading branch information
baconpaul authored Jul 16, 2022
1 parent ddb4788 commit 91bc21c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/dsp/effects/airwindows/AirWindowsEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
/*
Expand Down

0 comments on commit 91bc21c

Please sign in to comment.