MCPcopy Create free account
hub / github.com/audacity/audacity / ShowHostInterface

Method ShowHostInterface

src/effects/NoiseReduction.cpp:146–162  ·  view source on GitHub ↗

An override still here for historical reasons, ignoring the factory and the access ! We would like to make this effect behave more like others, but it does have its unusual two-pass nature. First choose and analyze an example of noise, then apply noise reduction to another selection. That is difficult to fit into the framework for managing settings of other effects. */

Source from the content-addressed store, hash-verified

144 then apply noise reduction to another selection. That is difficult to fit into
145 the framework for managing settings of other effects. */
146int EffectNoiseReduction::ShowHostInterface(EffectBase &,
147 wxWindow &parent, const EffectDialogFactory &,
148 std::shared_ptr<EffectInstance> &pInstance, EffectSettingsAccess &access,
149 bool forceModal)
150{
151 // Assign the out parameter
152 pInstance = MakeInstance();
153
154 // to do: use forceModal correctly
155
156 // Doesn't use the factory but substitutes its own dialog
157
158 // We may want to twiddle the levels if we are setting
159 // from a macro editing dialog
160 return PromptUser(*mSettings, this, access, parent,
161 bool(mStatistics), IsBatchProcessing());
162}
163
164//----------------------------------------------------------------------------
165// EffectNoiseReduction::Dialog

Callers 2

PromptForParamsForMethod · 0.45
DoEffectMethod · 0.45

Calls 2

PromptUserFunction · 0.85
IsBatchProcessingFunction · 0.85

Tested by

no test coverage detected