1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Fix crash when applying Ladspa effects

This commit is contained in:
lllucius 2014-12-07 18:01:17 +00:00
parent 1ff85fa1ae
commit ed8dd09414

View File

@ -538,6 +538,7 @@ LadspaEffect::LadspaEffect(const wxString & path, int index)
mNumInputControls = 0;
mNumOutputControls = 0;
mSampleRate = 44100;
mBlockSize = 0;
mInputPorts = NULL;
mOutputPorts = NULL;
@ -876,6 +877,8 @@ void LadspaEffect::SetSampleRate(sampleCount rate)
sampleCount LadspaEffect::GetBlockSize(sampleCount maxBlockSize)
{
mBlockSize = maxBlockSize;
return mBlockSize;
}