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#pragma once
13
15
16class BUILTIN_EFFECTS_API Invert : public StatefulPerTrackEffect
17{
18public:
19 Invert();
20 virtual ~Invert();
21
23
24 // ComponentInterface implementation
25 ComponentInterfaceSymbol GetSymbol() const override;
26 TranslatableString GetDescription() const override;
27
28 // EffectDefinitionInterface implementation
29 EffectType GetType() const override;
30 bool IsInteractive() const override;
31
32 unsigned GetAudioInCount() const override;
33 unsigned GetAudioOutCount() const override;
34 size_t ProcessBlock(
35 EffectSettings& settings, const float* const* inBlock,
36 float* const* outBlock, size_t blockLen) override;
37
38 bool NeedsDither() const override;
39};
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
Definition: Invert.h:17
static const ComponentInterfaceSymbol Symbol
Definition: Invert.h:22
virtual bool NeedsDither() const
virtual unsigned GetAudioOutCount() const
How many output buffers to allocate at once.
virtual unsigned GetAudioInCount() const
How many input buffers to allocate at once.
Base class for many of the effects in Audacity.
virtual size_t ProcessBlock(EffectSettings &settings, const float *const *inBlock, float *const *outBlock, size_t blockLen)=0
Called for destructive effect computation.
Holds a msgid for the translation catalog; may also bind format arguments.
Externalized state of a plug-in.