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
13#ifndef __AUDACITY_EFFECT_REVERSE__
14#define __AUDACITY_EFFECT_REVERSE__
15
16#include "Effect.h"
17
18class EffectReverse final : public StatefulEffect
19{
20public:
22
24 virtual ~EffectReverse();
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 // EffectReverse implementation
42
43 bool ProcessOneClip(int count, WaveTrack* track,
44 sampleCount start, sampleCount len, sampleCount originalStart, sampleCount originalEnd);
45 bool ProcessOneWave(int count, WaveTrack* track, sampleCount start, sampleCount len);
46 };
47
48#endif
49
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:87
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Performs effect computation.
An Effect that reverses the selected audio.
Definition: Reverse.h:19
static const ComponentInterfaceSymbol Symbol
Definition: Reverse.h:21
ComponentInterfaceSymbol GetSymbol() const override
Definition: Reverse.cpp:47
EffectType GetType() const override
Type determines how it behaves.
Definition: Reverse.cpp:59
bool ProcessOneClip(int count, WaveTrack *track, sampleCount start, sampleCount len, sampleCount originalStart, sampleCount originalEnd)
Definition: Reverse.cpp:214
TranslatableString GetDescription() const override
Definition: Reverse.cpp:52
virtual ~EffectReverse()
Definition: Reverse.cpp:41
bool Process(EffectInstance &instance, EffectSettings &settings) override
Definition: Reverse.cpp:71
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
Definition: Reverse.cpp:64
bool ProcessOneWave(int count, WaveTrack *track, sampleCount start, sampleCount len)
Definition: Reverse.cpp:102
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:19
Externalized state of a plug-in.