mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 08:09:41 +02:00
Fix for bug #1008
This commit is contained in:
parent
f3e17b76d0
commit
cdfb55ddf5
@ -135,6 +135,25 @@ bool EffectAmplify::SetAutomationParameters(EffectAutomationParameters & parms)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EffectAmplify::LoadFactoryDefaults()
|
||||
{
|
||||
Init();
|
||||
|
||||
mRatioClip = 0.0;
|
||||
if (mPeak > 0.0)
|
||||
{
|
||||
mRatio = 1.0 / mPeak;
|
||||
mRatioClip = mRatio;
|
||||
}
|
||||
else
|
||||
{
|
||||
mRatio = 1.0;
|
||||
}
|
||||
mCanClip = false;
|
||||
|
||||
return TransferDataToWindow();
|
||||
}
|
||||
|
||||
// Effect implementation
|
||||
|
||||
bool EffectAmplify::Init()
|
||||
|
@ -49,6 +49,7 @@ public:
|
||||
virtual sampleCount ProcessBlock(float **inBlock, float **outBlock, sampleCount blockLen);
|
||||
virtual bool GetAutomationParameters(EffectAutomationParameters & parms);
|
||||
virtual bool SetAutomationParameters(EffectAutomationParameters & parms);
|
||||
virtual bool LoadFactoryDefaults();
|
||||
|
||||
// Effect implementation
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user