Audacity 3.2.0
SilenceBase.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 SilenceBase.h
6
7 Dominic Mazzoni
8
9**********************************************************************/
10#pragma once
11
12#include "Generator.h"
13
14class BUILTIN_EFFECTS_API SilenceBase : public Generator
15{
16public:
18
20 virtual ~SilenceBase();
21
22 // ComponentInterface implementation
23
24 ComponentInterfaceSymbol GetSymbol() const override;
25 TranslatableString GetDescription() const override;
26 ManualPageID ManualPage() const override;
27
28 // EffectDefinitionInterface implementation
29
30 EffectType GetType() const override;
31
32protected:
33 // Generator implementation
34
35 bool GenerateTrack(const EffectSettings& settings, WaveTrack& tmp) override;
36};
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 ManualPageID ManualPage() const
Name of a page in the Audacity alpha manual, default is empty.
TranslatableString GetDescription() const override
Definition: Effect.cpp:64
ComponentInterfaceSymbol GetSymbol() const override
Definition: Effect.cpp:49
virtual bool GenerateTrack(const EffectSettings &settings, WaveTrack &tmp)=0
GenerateTrack() must be overridden by the actual generator class.
An effect to add silence.
Definition: SilenceBase.h:15
static const ComponentInterfaceSymbol Symbol
Definition: SilenceBase.h:17
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
Externalized state of a plug-in.