Audacity 3.2.0
Reverse.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Reverse.h
6
7 Mark Phillips
8
9 This class reverses the selected audio.
10
11**********************************************************************/
12#pragma once
13
14#include "StatefulEffect.h"
15
16class BUILTIN_EFFECTS_API Reverse : public StatefulEffect
17{
18public:
19 Reverse();
20 virtual ~Reverse();
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 // Effect implementation
33 bool Process(EffectInstance& instance, EffectSettings& settings) override;
34};
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.
static const ComponentInterfaceSymbol Symbol
Definition: Reverse.h:22
virtual bool Process(EffectInstance &instance, EffectSettings &settings)=0
Holds a msgid for the translation catalog; may also bind format arguments.
WAVE_TRACK_API bool Reverse(WaveTrack &track, sampleCount start, sampleCount len, const ProgressReport &report={})
Externalized state of a plug-in.