Audacity  3.0.3
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 217 of file Compressor.cpp.

218 { return XO("%.2f secs").Format( value ); }

References XO.

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

Here is the caller graph for this function:

◆ DecayTimeFormat()

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

Definition at line 220 of file Compressor.cpp.

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

References XO.

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

Here is the caller graph for this function:

◆ RatioLabelFormat()

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

Definition at line 235 of file Compressor.cpp.

236 {
237  auto format = (sliderValue % 10 == 0)
238  ? XO("Ratio %.0f to 1")
239  : XO("Ratio %.1f to 1");
240  return format.Format( value );
241 }

References format, and XO.

Referenced by EffectCompressor::UpdateUI().

Here is the caller graph for this function:

◆ RatioTextFormat()

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

Definition at line 223 of file Compressor.cpp.

224 {
225  auto format = (sliderValue % 10 == 0)
226  /* i18n-hint: Unless your language has a different convention for ratios,
227  * like 8:1, leave as is.*/
228  ? XO("%.0f:1")
229  /* i18n-hint: Unless your language has a different convention for ratios,
230  * like 8:1, leave as is.*/
231  : XO("%.1f:1");
232  return format.Format( value );
233 }

References format, and XO.

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

Here is the caller graph for this function:

◆ ThresholdFormat()

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

Definition at line 213 of file Compressor.cpp.

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

References XO.

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

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.

XO
#define XO(s)
Definition: Internat.h:31
format
int format
Definition: ExportPCM.cpp:56