Audacity 3.2.0
Invert.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Invert.h
6
7 Mark Phillips
8
9 This class inverts the selected audio.
10
11**********************************************************************/
12
13#ifndef __AUDACITY_EFFECT_INVERT__
14#define __AUDACITY_EFFECT_INVERT__
15
17
19{
20public:
22
24 virtual ~EffectInvert();
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 unsigned GetAudioInCount() const override;
37 unsigned GetAudioOutCount() const override;
39 const float *const *inBlock, float *const *outBlock, size_t blockLen)
40 override;
41};
42
43#endif
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:87
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An Effect that inverts the selected audio.
Definition: Invert.h:19
unsigned GetAudioInCount() const override
How many input buffers to allocate at once.
Definition: Invert.cpp:61
ComponentInterfaceSymbol GetSymbol() const override
Definition: Invert.cpp:39
static const ComponentInterfaceSymbol Symbol
Definition: Invert.h:21
EffectInvert()
Definition: Invert.cpp:29
EffectType GetType() const override
Type determines how it behaves.
Definition: Invert.cpp:51
unsigned GetAudioOutCount() const override
How many output buffers to allocate at once.
Definition: Invert.cpp:66
TranslatableString GetDescription() const override
Definition: Invert.cpp:44
size_t ProcessBlock(EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen) override
Called for destructive effect computation.
Definition: Invert.cpp:71
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
Definition: Invert.cpp:56
virtual ~EffectInvert()
Definition: Invert.cpp:33
Base class for many of the effects in Audacity.
Holds a msgid for the translation catalog; may also bind format arguments.
Externalized state of a plug-in.