1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-29 06:38:38 +02:00

Merge pull request #154 from rickst29/master

Compressor.cpp: Allow higher-precision 'Ratio'
This commit is contained in:
Steve Daulton 2016-08-03 00:32:53 +01:00 committed by GitHub
commit c21bbb17f2

View File

@ -57,7 +57,7 @@ enum
// Name Type Key Def Min Max Scale
Param( Threshold, double, XO("Threshold"), -12.0, -60.0, -1.0, 1 );
Param( NoiseFloor, double, XO("NoiseFloor"), -40.0, -80.0, -20.0, 5 );
Param( Ratio, double, XO("Ratio"), 2.0, 1.5, 10.0, 2 );
Param( Ratio, double, XO("Ratio"), 2.0, 1.1, 10.0, 10 );
Param( AttackTime, double, XO("AttackTime"), 0.2, 0.1, 5.0, 100 );
Param( ReleaseTime, double, XO("ReleaseTime"), 1.0, 1.0, 30.0, 10 );
Param( Normalize, bool, XO("Normalize"), true, false, true, 1 );
@ -633,7 +633,7 @@ void EffectCompressor::UpdateUI()
mNoiseFloorText->SetLabel(wxString::Format(_("%3d dB"), (int) mNoiseFloorDB));
mNoiseFloorText->SetName(mNoiseFloorText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
if (mRatioSlider->GetValue() % 2 == 0) {
if (mRatioSlider->GetValue() % 10 == 0) {
mRatioLabel->SetName(wxString::Format(_("Ratio %.0f to 1"), mRatio));
/* i18n-hint: Unless your language has a different convention for ratios,
* like 8:1, leave as is.*/