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

Classes

struct  ControlInfo
 

Functions

int PromptUser (EffectNoiseReduction::Settings &settings, EffectNoiseReduction *effect, EffectSettingsAccess &access, wxWindow &parent, bool bHasProfile, bool bAllowTwiddleSettings)
 
const ControlInfocontrolInfo ()
 

Variables

BuiltinEffectsModule::Registration< EffectNoiseReductionreg
 

Function Documentation

◆ controlInfo()

const ControlInfo * anonymous_namespace{NoiseReduction.cpp}::controlInfo ( )

Definition at line 279 of file NoiseReduction.cpp.

279 {
280 static const ControlInfo table[] = {
282 0.0, 48.0, 48, wxT("%d"), true,
283 XXO("&Noise reduction (dB):"), XO("Noise reduction")),
285 0.01, 24.0, 48, wxT("%.2f"), false,
286 XXO("&Sensitivity:"), XO("Sensitivity")),
287#ifdef ATTACK_AND_RELEASE
289 0, 1.0, 100, wxT("%.2f"), false,
290 XXO("Attac&k time (secs):"), XO("Attack time")),
292 0, 1.0, 100, wxT("%.2f"), false,
293 XXO("R&elease time (secs):"), XO("Release time")),
294#endif
296 0, 12, 12, wxT("%d"), true,
297 XXO("&Frequency smoothing (bands):"), XO("Frequency smoothing")),
298
299#ifdef ADVANCED_SETTINGS
301 -20.0, 20.0, 4000, wxT("%.2f"), false,
302 XXO("Sensiti&vity (dB):"), XO("Old Sensitivity")),
303 // add here
304#endif
305 };
306
307return table;
308}
wxT("CloseDown"))
XO("Cut/Copy/Paste")
XXO("&Cut/Copy/Paste Toolbar")

References NoiseReductionBase::Settings::mAttackTime, NoiseReductionBase::Settings::mFreqSmoothingBands, NoiseReductionBase::Settings::mNewSensitivity, NoiseReductionBase::Settings::mNoiseGain, NoiseReductionBase::Settings::mOldSensitivity, NoiseReductionBase::Settings::mReleaseTime, wxT(), XO(), and XXO().

Referenced by EffectNoiseReduction::Dialog::OnSlider(), EffectNoiseReduction::Dialog::OnText(), EffectNoiseReduction::Dialog::PopulateOrExchange(), and EffectNoiseReduction::Dialog::TransferDataToWindow().

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

◆ PromptUser()

int anonymous_namespace{NoiseReduction.cpp}::PromptUser ( EffectNoiseReduction::Settings settings,
EffectNoiseReduction effect,
EffectSettingsAccess access,
wxWindow &  parent,
bool  bHasProfile,
bool  bAllowTwiddleSettings 
)

Definition at line 116 of file NoiseReduction.cpp.

120{
122 effect, access, &settings, &parent, bHasProfile, bAllowTwiddleSettings);
123
124 dlog.CentreOnParent();
125 dlog.ShowModal();
126
127 const auto returnCode = dlog.GetReturnCode();
128 if (!returnCode)
129 return 0;
130
131 settings = dlog.GetTempSettings();
132 settings.mDoProfile = (returnCode == 1);
133
134 if (!settings.PrefsIO(false))
135 return 0;
136 return returnCode;
137}
static Settings & settings()
Definition: TrackInfo.cpp:51
Dialog used with EffectNoiseReduction.

References EffectNoiseReduction::Dialog::GetTempSettings(), and settings().

Referenced by EffectNoiseReduction::ShowHostInterface().

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

Variable Documentation

◆ reg

BuiltinEffectsModule::Registration< EffectNoiseReduction > anonymous_namespace{NoiseReduction.cpp}::reg

Definition at line 112 of file NoiseReduction.cpp.