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#pragma once
11
12#include "StatefulEffect.h"
13
14class BUILTIN_EFFECTS_API StereoToMono : public StatefulEffect
15{
16public:
18
19 // ComponentInterface implementation
20
21 ComponentInterfaceSymbol GetSymbol() const override;
22 TranslatableString GetDescription() const override;
23
24 // EffectDefinitionInterface implementation
25
26 EffectType GetType() const override;
27 bool IsInteractive() const override;
28
29 unsigned GetAudioInCount() const override;
30 unsigned GetAudioOutCount() const override;
31
32 // Effect implementation
33
34 bool Process(EffectInstance& instance, EffectSettings& settings) override;
35 bool IsHiddenFromMenus() const override;
36
37private:
38 // EffectStereoToMono implementation
39
40 bool ProcessOne(
41 TrackList& outputs, sampleCount& curTime, sampleCount totalTime,
42 WaveTrack& track);
43};
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.
virtual bool IsHiddenFromMenus() const
Default is false.
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.
virtual bool Process(EffectInstance &instance, EffectSettings &settings)=0
virtual unsigned GetAudioOutCount() const
How many output buffers to allocate at once.
virtual unsigned GetAudioInCount() const
How many input buffers to allocate at once.
static const ComponentInterfaceSymbol Symbol
Definition: StereoToMono.h:17
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Definition: Track.h:850
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19
Externalized state of a plug-in.