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#pragma once
11
12#include "StatefulEffect.h"
13
14class WaveChannel;
15
16class BUILTIN_EFFECTS_API Repair : public StatefulEffect
17{
18public:
20
21 // ComponentInterface implementation
22
23 ComponentInterfaceSymbol GetSymbol() const override;
24 TranslatableString GetDescription() const override;
25
26 // EffectDefinitionInterface implementation
27
28 EffectType GetType() const override;
29 bool IsInteractive() const override;
30
31 // Effect implementation
32
33 bool Process(EffectInstance& instance, EffectSettings& settings) override;
34
35 bool NeedsDither() const override;
36
37private:
38 // EffectRepair implementation
39
40 bool ProcessOne(
41 int count, WaveChannel& track, sampleCount start, size_t len,
42 size_t repairStart, // offset relative to start
43 size_t repairLen);
44};
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:51
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
virtual EffectType GetType() const =0
Type determines how it behaves.
TranslatableString GetDescription() const override
Definition: Effect.cpp:64
ComponentInterfaceSymbol GetSymbol() const override
Definition: Effect.cpp:49
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
Definition: Effect.cpp:76
Performs effect computation.
Definition: Repair.h:17
static const ComponentInterfaceSymbol Symbol
Definition: Repair.h:19
virtual bool Process(EffectInstance &instance, EffectSettings &settings)=0
virtual bool NeedsDither() const
Holds a msgid for the translation catalog; may also bind format arguments.
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19
Externalized state of a plug-in.