Audacity 3.2.0
Functions | Variables
anonymous_namespace{Compressor.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< EffectCompressorreg
 

Function Documentation

◆ AttackTimeFormat()

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

Definition at line 132 of file Compressor.cpp.

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

References XO().

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

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

◆ DecayTimeFormat()

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

Definition at line 135 of file Compressor.cpp.

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

References XO().

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

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

◆ RatioLabelFormat()

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

Definition at line 150 of file Compressor.cpp.

151{
152 auto format = (sliderValue % 10 == 0)
153 ? XO("Ratio %.0f to 1")
154 : XO("Ratio %.1f to 1");
155 return format.Format( value );
156}
int format
Definition: ExportPCM.cpp:53

References format, and XO().

Referenced by EffectCompressor::UpdateUI().

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

◆ RatioTextFormat()

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

Definition at line 138 of file Compressor.cpp.

139{
140 auto format = (sliderValue % 10 == 0)
141 /* i18n-hint: Unless your language has a different convention for ratios,
142 * like 8:1, leave as is.*/
143 ? XO("%.0f:1")
144 /* i18n-hint: Unless your language has a different convention for ratios,
145 * like 8:1, leave as is.*/
146 : XO("%.1f:1");
147 return format.Format( value );
148}

References format, and XO().

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

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

◆ ThresholdFormat()

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

Definition at line 128 of file Compressor.cpp.

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

References XO().

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

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

Variable Documentation

◆ reg

BuiltinEffectsModule::Registration< EffectCompressor > anonymous_namespace{Compressor.cpp}::reg

Definition at line 78 of file Compressor.cpp.