mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 00:20:06 +02:00
Fix for bug 958
Bug 958 is due to rounding that is not visible to the user. By providing one extra decimal place to the New Peak Amplitude (dB) the user can see if they have exceeded 0 dB by a small amount.
This commit is contained in:
parent
94550bc0be
commit
0792eb0cb3
@ -211,7 +211,7 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
S.StartVerticalLay(0);
|
||||
{
|
||||
int precission = 3;
|
||||
int precission = 3; // allow (a generous) 3 decimal places for Amplification (dB)
|
||||
// Amplitude
|
||||
S.StartMultiColumn(2, wxCENTER);
|
||||
{
|
||||
@ -234,7 +234,8 @@ void EffectAmplify::PopulateOrExchange(ShuttleGui & S)
|
||||
// Peak
|
||||
S.StartMultiColumn(2, wxCENTER);
|
||||
{
|
||||
FloatingPointValidator<double> vldNewPeak(precission, &mNewPeak, NUM_VAL_ONE_TRAILING_ZERO);
|
||||
// One extra decimal place so that rounding is visible to user (see: bug 958)
|
||||
FloatingPointValidator<double> vldNewPeak(precission + 1, &mNewPeak, NUM_VAL_ONE_TRAILING_ZERO);
|
||||
double minAmp = MIN_Amp + LINEAR_TO_DB(mPeak);
|
||||
double maxAmp = MAX_Amp + LINEAR_TO_DB(mPeak);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user