Audacity 3.2.0
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 "StatefulEffect.h"
15
17{
18public:
20
22 virtual ~EffectStereoToMono();
23
24 // ComponentInterface implementation
25
26 ComponentInterfaceSymbol GetSymbol() const override;
27 TranslatableString GetDescription() const override;
28
29 // EffectDefinitionInterface implementation
30
31 EffectType GetType() const override;
32 bool IsInteractive() const override;
33
34 unsigned GetAudioInCount() const override;
35 unsigned GetAudioOutCount() const override;
36
37 // Effect implementation
38
39 bool Process(EffectInstance &instance, EffectSettings &settings) override;
40 bool IsHiddenFromMenus() const override;
41
42private:
43 // EffectStereoToMono implementation
44
45 bool ProcessOne(TrackList &outputs,
46 sampleCount & curTime, sampleCount totalTime, WaveTrack &track);
47
48};
49
50#endif
51
EffectType
static Settings & settings()
Definition: TrackInfo.cpp:69
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Performs effect computation.
An Effect to convert stereo to mono.
Definition: StereoToMono.h:17
unsigned GetAudioOutCount() const override
How many output buffers to allocate at once.
bool IsInteractive() const override
Whether the effect needs a dialog for entry of settings.
unsigned GetAudioInCount() const override
How many input buffers to allocate at once.
ComponentInterfaceSymbol GetSymbol() const override
static const ComponentInterfaceSymbol Symbol
Definition: StereoToMono.h:19
bool Process(EffectInstance &instance, EffectSettings &settings) override
TranslatableString GetDescription() const override
bool ProcessOne(TrackList &outputs, sampleCount &curTime, sampleCount totalTime, WaveTrack &track)
bool IsHiddenFromMenus() const override
Default is false.
EffectType GetType() const override
Type determines how it behaves.
virtual ~EffectStereoToMono()
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Definition: Track.h:993
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:227
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19
Externalized state of a plug-in.