Skip to content

Commit

Permalink
set up fir Filter when re-loading state (i.e. plugin restore condition)
Browse files Browse the repository at this point in the history
  • Loading branch information
austrianAudioJV committed Dec 14, 2023
1 parent b331cef commit 03698ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,16 @@ PolarDesignerAudioProcessor::PolarDesignerAudioProcessor() : AudioProcessor (Bus
activeBandsChanged = true;
zeroDelayModeChanged = true;
ffDfEqChanged = true;

// !J! Some Hosts call setStateInformation before prepareToPlay...
// filter bank
filterBankBuffer.setSize (N_CH_IN * 5, currentBlockSize);
filterBankBuffer.clear();
firFilterBuffer.setSize (5, firLen);
firFilterBuffer.clear();
omniEightBuffer.setSize (2, currentBlockSize);
omniEightBuffer.clear();

computeAllFilterCoefficients();
initAllConvolvers();
repaintDEQ = true;
Expand Down

0 comments on commit 03698ae

Please sign in to comment.