Audacity 3.2.0
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
16class WaveTrack;
17
18class EffectRepair final : public StatefulEffect
19{
20public:
22
24 virtual ~EffectRepair();
25
26 // ComponentInterface implementation
27
28 ComponentInterfaceSymbol GetSymbol() const override;
29 TranslatableString GetDescription() const override;
30
31 // EffectDefinitionInterface implementation
32
33 EffectType GetType() const override;
34 bool IsInteractive() const override;
35
36 // Effect implementation
37
38 bool Process(EffectInstance &instance, EffectSettings &settings) override;
39
40private:
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__
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:87
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Performs effect computation.
Use the interpolation code to fill in damaged audio. Damage can include pops, clicks,...
Definition: Repair.h:19
EffectType GetType() const override
Type determines how it behaves.
Definition: Repair.cpp:64
ComponentInterfaceSymbol GetSymbol() const override
Definition: Repair.cpp:52
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
Definition: Repair.cpp:69
bool Process(EffectInstance &instance, EffectSettings &settings) override
Actually do the effect here.
Definition: Repair.cpp:76
virtual ~EffectRepair()
Definition: Repair.cpp:46
EffectRepair()
Definition: Repair.cpp:42
TranslatableString GetDescription() const override
Definition: Repair.cpp:57
bool ProcessOne(int count, WaveTrack *track, sampleCount start, size_t len, size_t repairStart, size_t repairLen)
Definition: Repair.cpp:143
static const ComponentInterfaceSymbol Symbol
Definition: Repair.h:21
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:57
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:18
Externalized state of a plug-in.