Audacity  3.0.3
StereoToMono.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  StereoToMono.h
6 
7  Lynn Allan
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EFFECT_STEREO_TO_MONO__
12 #define __AUDACITY_EFFECT_STEREO_TO_MONO__
13 
14 #include "Effect.h"
15 
16 class EffectStereoToMono final : public Effect
17 {
18 public:
20 
22  virtual ~EffectStereoToMono();
23 
24  // ComponentInterface implementation
25 
28 
29  // EffectDefinitionInterface implementation
30 
31  EffectType GetType() override;
32  bool IsInteractive() override;
33 
34  // EffectClientInterface implementation
35 
36  unsigned GetAudioInCount() override;
37  unsigned GetAudioOutCount() override;
38 
39  // Effect implementation
40 
41  bool Process() override;
42  bool IsHidden() override;
43 
44 private:
45  // EffectStereoToMono implementation
46 
47  bool ProcessOne(sampleCount & curTime, sampleCount totalTime, WaveTrack *left, WaveTrack *right);
48 
49 };
50 
51 #endif
52 
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:68
Effect.h
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:70
EffectStereoToMono::ProcessOne
bool ProcessOne(sampleCount &curTime, sampleCount totalTime, WaveTrack *left, WaveTrack *right)
Definition: StereoToMono.cpp:168
EffectStereoToMono
An Effect to convert stereo to mono.
Definition: StereoToMono.h:17
EffectStereoToMono::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: StereoToMono.cpp:42
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterface.h:61
EffectStereoToMono::Process
bool Process() override
Definition: StereoToMono.cpp:79
EffectStereoToMono::IsHidden
bool IsHidden() override
Definition: StereoToMono.cpp:222
EffectStereoToMono::GetAudioInCount
unsigned GetAudioInCount() override
Definition: StereoToMono.cpp:67
EffectStereoToMono::EffectStereoToMono
EffectStereoToMono()
Definition: StereoToMono.cpp:32
sampleCount
Definition: Types.h:66
EffectStereoToMono::GetAudioOutCount
unsigned GetAudioOutCount() override
Definition: StereoToMono.cpp:72
EffectStereoToMono::GetType
EffectType GetType() override
Definition: StereoToMono.cpp:54
EffectStereoToMono::~EffectStereoToMono
virtual ~EffectStereoToMono()
Definition: StereoToMono.cpp:36
EffectType
EffectType
Definition: EffectInterface.h:55
EffectStereoToMono::IsInteractive
bool IsInteractive() override
Definition: StereoToMono.cpp:60
EffectStereoToMono::GetDescription
TranslatableString GetDescription() override
Definition: StereoToMono.cpp:47
EffectStereoToMono::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: StereoToMono.h:19