Audacity 3.2.0
SilenceBase.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 SilenceBase.cpp
6
7 Dominic Mazzoni
8
9*******************************************************************//*******************************************************************/
15#include "SilenceBase.h"
16#include "WaveTrack.h"
17
19/* i18n-hint: noun */
20{ XC("Silence", "generator") };
21
23{
25}
26
28{
29}
30
31// ComponentInterface implementation
32
34{
35 return Symbol;
36}
37
39{
40 return XO("Creates audio of zero amplitude");
41}
42
44{
45 return L"Silence";
46}
47
48
49// EffectDefinitionInterface implementation
50
52{
53 return EffectTypeGenerate;
54}
55
56
58{
59 tmp.InsertSilence(0.0, settings.extra.GetDuration());
60 return true;
61}
EffectType
@ EffectTypeGenerate
XO("Cut/Copy/Paste")
#define XC(s, c)
Definition: Internat.h:37
static Settings & settings()
Definition: TrackInfo.cpp:51
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
void SetLinearEffectFlag(bool linearEffectFlag)
Definition: EffectBase.cpp:210
bool GenerateTrack(const EffectSettings &settings, WaveTrack &tmp) override
GenerateTrack() must be overridden by the actual generator class.
Definition: SilenceBase.cpp:57
EffectType GetType() const override
Type determines how it behaves.
Definition: SilenceBase.cpp:51
TranslatableString GetDescription() const override
Definition: SilenceBase.cpp:38
virtual ~SilenceBase()
Definition: SilenceBase.cpp:27
ComponentInterfaceSymbol GetSymbol() const override
Definition: SilenceBase.cpp:33
static const ComponentInterfaceSymbol Symbol
Definition: SilenceBase.h:17
ManualPageID ManualPage() const override
Name of a page in the Audacity alpha manual, default is empty.
Definition: SilenceBase.cpp:43
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
void InsertSilence(double t, double len) override
Definition: WaveTrack.cpp:2023
Externalized state of a plug-in.