Audacity  3.0.3
Repair.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Repair.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EFFECT_REPAIR__
12 #define __AUDACITY_EFFECT_REPAIR__
13 
14 #include "Effect.h"
15 
16 class WaveTrack;
17 
18 class EffectRepair final : public Effect
19 {
20 public:
22 
23  EffectRepair();
24  virtual ~EffectRepair();
25 
26  // ComponentInterface implementation
27 
30 
31  // EffectDefinitionInterface implementation
32 
33  EffectType GetType() override;
34  bool IsInteractive() override;
35 
36  // Effect implementation
37 
38  bool Process() override;
39 
40 private:
41  // EffectRepair implementation
42 
43  bool ProcessOne(int count, WaveTrack * track,
44  sampleCount start,
45  size_t len,
46  size_t repairStart, // offset relative to start
47  size_t repairLen);
48 };
49 
50 #endif // __AUDACITY_EFFECT_REPAIT__
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
EffectRepair::IsInteractive
bool IsInteractive() override
Definition: Repair.cpp:69
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
Effect.h
EffectRepair::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: Repair.h:21
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:72
EffectRepair
Use the interpolation code to fill in damaged audio. Damage can include pops, clicks,...
Definition: Repair.h:19
EffectRepair::~EffectRepair
virtual ~EffectRepair()
Definition: Repair.cpp:46
EffectRepair::GetDescription
TranslatableString GetDescription() override
Definition: Repair.cpp:57
EffectRepair::EffectRepair
EffectRepair()
Definition: Repair.cpp:42
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectRepair::Process
bool Process() override
Definition: Repair.cpp:76
EffectRepair::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: Repair.cpp:52
sampleCount
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:18
EffectRepair::GetType
EffectType GetType() override
Definition: Repair.cpp:64
EffectType
EffectType
Definition: EffectInterface.h:55
EffectRepair::ProcessOne
bool ProcessOne(int count, WaveTrack *track, sampleCount start, size_t len, size_t repairStart, size_t repairLen)
Definition: Repair.cpp:143