Audacity 3.2.0
Functions | Variables
anonymous_namespace{LegacyCompressor.cpp} Namespace Reference

Functions

TranslatableString ThresholdFormat (int value)
 
TranslatableString AttackTimeFormat (double value)
 
TranslatableString DecayTimeFormat (double value)
 
TranslatableString RatioTextFormat (int sliderValue, double value)
 
TranslatableString RatioLabelFormat (int sliderValue, double value)
 

Variables

BuiltinEffectsModule::Registration< EffectLegacyCompressorreg
 

Function Documentation

◆ AttackTimeFormat()

TranslatableString anonymous_namespace{LegacyCompressor.cpp}::AttackTimeFormat ( double  value)

Definition at line 64 of file LegacyCompressor.cpp.

65{ return XO("%.2f secs").Format( value ); }
XO("Cut/Copy/Paste")

References XO().

Referenced by EffectLegacyCompressor::PopulateOrExchange(), and EffectLegacyCompressor::UpdateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DecayTimeFormat()

TranslatableString anonymous_namespace{LegacyCompressor.cpp}::DecayTimeFormat ( double  value)

Definition at line 67 of file LegacyCompressor.cpp.

68{ return XO("%.1f secs").Format( value ); }

References XO().

Referenced by EffectLegacyCompressor::PopulateOrExchange(), and EffectLegacyCompressor::UpdateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RatioLabelFormat()

TranslatableString anonymous_namespace{LegacyCompressor.cpp}::RatioLabelFormat ( int  sliderValue,
double  value 
)

Definition at line 82 of file LegacyCompressor.cpp.

83{
84 auto format = (sliderValue % 10 == 0)
85 ? XO("Ratio %.0f to 1")
86 : XO("Ratio %.1f to 1");
87 return format.Format( value );
88}

References anonymous_namespace{ExportPCM.cpp}::format, and XO().

Referenced by EffectLegacyCompressor::UpdateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RatioTextFormat()

TranslatableString anonymous_namespace{LegacyCompressor.cpp}::RatioTextFormat ( int  sliderValue,
double  value 
)

Definition at line 70 of file LegacyCompressor.cpp.

71{
72 auto format = (sliderValue % 10 == 0)
73 /* i18n-hint: Unless your language has a different convention for ratios,
74 * like 8:1, leave as is.*/
75 ? XO("%.0f:1")
76 /* i18n-hint: Unless your language has a different convention for ratios,
77 * like 8:1, leave as is.*/
78 : XO("%.1f:1");
79 return format.Format( value );
80}

References anonymous_namespace{ExportPCM.cpp}::format, and XO().

Referenced by EffectLegacyCompressor::PopulateOrExchange(), and EffectLegacyCompressor::UpdateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ThresholdFormat()

TranslatableString anonymous_namespace{LegacyCompressor.cpp}::ThresholdFormat ( int  value)

Definition at line 60 of file LegacyCompressor.cpp.

62{ return XO("%3d dB").Format(value); }

References XO().

Referenced by EffectLegacyCompressor::PopulateOrExchange(), and EffectLegacyCompressor::UpdateUI().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ reg

BuiltinEffectsModule::Registration<EffectLegacyCompressor> anonymous_namespace{LegacyCompressor.cpp}::reg

Definition at line 49 of file LegacyCompressor.cpp.