Skip to content

Commit

Permalink
v2.0.21: CUBASE edge case bugfix: do not initConvolvers() in setState…
Browse files Browse the repository at this point in the history
…, and do not

pass junk to currentBlocksize, etc.
  • Loading branch information
Jay Vaughan committed Dec 19, 2023
1 parent 5316c69 commit 7eeed29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,15 @@ PolarDesignerAudioProcessor::PolarDesignerAudioProcessor() : AudioProcessor (Bus

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

computeAllFilterCoefficients();
initAllConvolvers();

repaintDEQ = true;
}

Expand Down
4 changes: 2 additions & 2 deletions source/PluginProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ class PolarDesignerAudioProcessor : public AudioProcessor, public AudioProcesso
AudioBuffer<float> omniEightBuffer; // holds omni and fig-of-eight signals, size: 2
dsp::Convolution convolvers[10]; // holds 2*nBands mono convolvers

double currentSampleRate;
int currentBlockSize;
double currentSampleRate = 0;
int currentBlockSize = 0;

//==============================================================================
void resetXoverFreqs();
Expand Down

0 comments on commit 7eeed29

Please sign in to comment.