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 131 of file Compressor.cpp.

132{ return XO("%.2f secs").Format( value ); }
#define XO(s)
Definition: Internat.h:31

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 134 of file Compressor.cpp.

135{ 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 149 of file Compressor.cpp.

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

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 137 of file Compressor.cpp.

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

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 127 of file Compressor.cpp.

129{ 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 77 of file Compressor.cpp.