Audacity  3.0.3
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 
18 class EffectReverse final : public Effect
19 {
20 public:
22 
23  EffectReverse();
24  virtual ~EffectReverse();
25 
26  // ComponentInterface implementation
27 
30 
31  // EffectDefinitionInterface implementation
32 
33  EffectType GetType() override;
34  bool IsInteractive() override;
35 
36  // Effect implementation
37 
38  bool Process() override;
39 
40 private:
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 
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
EffectReverse::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: Reverse.cpp:48
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
Effect.h
EffectReverse::ProcessOneWave
bool ProcessOneWave(int count, WaveTrack *track, sampleCount start, sampleCount len)
Definition: Reverse.cpp:103
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:72
EffectReverse::GetDescription
TranslatableString GetDescription() override
Definition: Reverse.cpp:53
EffectReverse::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: Reverse.h:21
EffectReverse::Process
bool Process() override
Definition: Reverse.cpp:72
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectReverse::GetType
EffectType GetType() override
Definition: Reverse.cpp:60
EffectReverse::EffectReverse
EffectReverse()
Definition: Reverse.cpp:38
EffectReverse::ProcessOneClip
bool ProcessOneClip(int count, WaveTrack *track, sampleCount start, sampleCount len, sampleCount originalStart, sampleCount originalEnd)
Definition: Reverse.cpp:215
EffectReverse::~EffectReverse
virtual ~EffectReverse()
Definition: Reverse.cpp:42
sampleCount
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:18
EffectType
EffectType
Definition: EffectInterface.h:55
EffectReverse
An Effect that reverses the selected audio.
Definition: Reverse.h:19
EffectReverse::IsInteractive
bool IsInteractive() override
Definition: Reverse.cpp:65