mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
Amplify effect should correctly restore the saved can-clip setting...
... bug began at commit d98e41a When not batch processing, don't overwrite mCanClip
This commit is contained in:
parent
310b5dea30
commit
91503a91f1
@ -215,8 +215,10 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
enum{ precision = 3 }; // allow (a generous) 3 decimal places for Amplification (dB)
|
||||
|
||||
if (IsBatchProcessing())
|
||||
bool batch = IsBatchProcessing();
|
||||
if ( batch )
|
||||
{
|
||||
mCanClip = true;
|
||||
mPeak = 1.0;
|
||||
}
|
||||
else
|
||||
@ -277,7 +279,8 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
|
||||
// Clipping
|
||||
S.StartHorizontalLay(wxCENTER);
|
||||
{
|
||||
mClip = S.Id(ID_Clip).Disable( mCanClip = IsBatchProcessing() )
|
||||
|
||||
mClip = S.Id(ID_Clip).Disable( batch )
|
||||
.AddCheckBox(XO("Allow clipping"), false);
|
||||
}
|
||||
S.EndHorizontalLay();
|
||||
|
Loading…
x
Reference in New Issue
Block a user