Audacity  3.0.3
NoiseReduction.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  NoiseReduction.h
6 
7  Dominic Mazzoni
8  Vaughan Johnson (Preview)
9  Paul Licameli
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_EFFECT_NOISE_REDUCTION__
14 #define __AUDACITY_EFFECT_NOISE_REDUCTION__
15 
16 #include "Effect.h"
17 
18 class EffectNoiseReduction final : public Effect {
19 public:
21 
23  virtual ~EffectNoiseReduction();
24 
26 
27  // ComponentInterface implementation
28 
31 
32  // EffectDefinitionInterface implementation
33 
34  EffectType GetType() override;
35 
36  // Effect implementation
37 
38 // using Effect::TrackProgress;
39 
40  bool ShowInterface( wxWindow &parent,
41  const EffectDialogFactory &factory, bool forceModal = false) override;
42 
43  bool Init() override;
44  bool CheckWhetherSkipEffect() override;
45  bool Process() override;
46 
47  class Settings;
48  class Statistics;
49  class Dialog;
50 
51 private:
52  class Worker;
53  friend class Dialog;
54 
55  std::unique_ptr<Settings> mSettings;
56  std::unique_ptr<Statistics> mStatistics;
57 };
58 
59 #endif
EffectNoiseReduction::Statistics
Definition: NoiseReduction.cpp:170
EffectNoiseReduction
A two-pass effect to reduce background noise.
Definition: NoiseReduction.h:18
EffectNoiseReduction::CheckWhetherSkipEffect
bool CheckWhetherSkipEffect() override
Definition: NoiseReduction.cpp:444
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
EffectNoiseReduction::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: NoiseReduction.cpp:422
Effect.h
EffectNoiseReduction::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: NoiseReduction.h:20
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:72
EffectNoiseReduction::ShowInterface
bool ShowInterface(wxWindow &parent, const EffectDialogFactory &factory, bool forceModal=false) override
Definition: NoiseReduction.cpp:449
EffectNoiseReduction::GetDescription
TranslatableString GetDescription() override
Definition: NoiseReduction.cpp:427
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectNoiseReduction::GetType
EffectType GetType() override
Definition: NoiseReduction.cpp:434
factory
static RegisteredToolbarFactory factory
Definition: ControlToolBar.cpp:817
EffectClientInterface::EffectDialogFactory
std::function< wxDialog *(wxWindow &parent, EffectHostInterface *, EffectUIClientInterface *) > EffectDialogFactory
Definition: EffectInterface.h:190
EffectNoiseReduction::Process
bool Process() override
Definition: NoiseReduction.cpp:616
EffectNoiseReduction::EffectNoiseReduction
EffectNoiseReduction()
Definition: NoiseReduction.cpp:410
EffectNoiseReduction::Worker
Definition: NoiseReduction.cpp:259
EffectNoiseReduction::Dialog
Dialog used with EffectNoiseReduction.
Definition: NoiseReduction.cpp:346
EffectNoiseReduction::~EffectNoiseReduction
virtual ~EffectNoiseReduction()
Definition: NoiseReduction.cpp:416
EffectNoiseReduction::mSettings
std::unique_ptr< Settings > mSettings
Definition: NoiseReduction.h:55
EffectType
EffectType
Definition: EffectInterface.h:55
EffectNoiseReduction::mStatistics
std::unique_ptr< Statistics > mStatistics
Definition: NoiseReduction.h:56
EffectNoiseReduction::Settings
Definition: NoiseReduction.cpp:209
Effect::TrackProgress
bool TrackProgress(int whichTrack, double frac, const TranslatableString &={})
Definition: Effect.cpp:2025
EffectNoiseReduction::Init
bool Init() override
Definition: NoiseReduction.cpp:439