Audacity  2.2.0
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 #include "../MemoryX.h"
19 
20 #define NOISEREDUCTION_PLUGIN_SYMBOL XO("Noise Reduction")
21 
22 class EffectNoiseReduction final : public Effect {
23 public:
24 
26  virtual ~EffectNoiseReduction();
27 
29 
30  // IdentInterface implementation
31 
32  wxString GetSymbol() override;
33  wxString GetDescription() override;
34 
35  // EffectIdentInterface implementation
36 
37  EffectType GetType() override;
38 
39  // Effect implementation
40 
41 // using Effect::TrackProgress;
42 
43  bool PromptUser(wxWindow *parent) override;
44 
45  bool Init() override;
46  bool CheckWhetherSkipEffect() override;
47  bool Process() override;
48 
49  class Settings;
50  class Statistics;
51  class Dialog;
52 
53 private:
54  class Worker;
55  friend class Dialog;
56 
57  std::unique_ptr<Settings> mSettings;
58  std::unique_ptr<Statistics> mStatistics;
59 };
60 
61 #endif
bool Init() override
Definition: NoiseReduction.cpp:443
wxString GetDescription() override
Definition: NoiseReduction.cpp:431
bool TrackProgress(int whichTrack, double frac, const wxString &=wxEmptyString)
Definition: Effect.cpp:1961
Definition: NoiseReduction.cpp:198
bool PromptUser(wxWindow *parent) override
Definition: NoiseReduction.cpp:453
A two-pass effect to reduce background noise.
Definition: NoiseReduction.h:22
Base class for many of the effects in Audacity.
Definition: Effect.h:62
bool Process() override
Definition: NoiseReduction.cpp:597
Definition: NoiseReduction.cpp:159
Definition: NoiseReduction.cpp:247
EffectNoiseReduction()
Definition: NoiseReduction.cpp:414
EffectType GetType() override
Definition: NoiseReduction.cpp:438
wxString GetSymbol() override
Definition: NoiseReduction.cpp:426
virtual ~EffectNoiseReduction()
Definition: NoiseReduction.cpp:420
Dialog used with EffectNoiseReduction.
Definition: NoiseReduction.cpp:355
std::unique_ptr< Settings > mSettings
Definition: NoiseReduction.h:57
std::unique_ptr< Statistics > mStatistics
Definition: NoiseReduction.h:58
bool CheckWhetherSkipEffect() override
Definition: NoiseReduction.cpp:448