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:
parent
1ff85fa1ae
commit
ed8dd09414
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user