54 lines
1.1 KiB
C++
54 lines
1.1 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
Silence.h
|
|
|
|
Dominic Mazzoni
|
|
|
|
An effect to add silence.
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_EFFECT_SILENCE__
|
|
#define __AUDACITY_EFFECT_SILENCE__
|
|
|
|
#include "Generator.h"
|
|
|
|
class NumericTextCtrl;
|
|
|
|
#define SILENCE_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Silence") }
|
|
|
|
class EffectSilence final : public Generator
|
|
{
|
|
public:
|
|
EffectSilence();
|
|
virtual ~EffectSilence();
|
|
|
|
// ComponentInterface implementation
|
|
|
|
ComponentInterfaceSymbol GetSymbol() override;
|
|
TranslatableString GetDescription() override;
|
|
wxString ManualPage() override;
|
|
|
|
// EffectDefinitionInterface implementation
|
|
|
|
EffectType GetType() override;
|
|
|
|
// Effect implementation
|
|
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
bool TransferDataToWindow() override;
|
|
bool TransferDataFromWindow() override;
|
|
|
|
protected:
|
|
// Generator implementation
|
|
|
|
bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack) override;
|
|
|
|
private:
|
|
NumericTextCtrl *mDurationT;
|
|
};
|
|
|
|
#endif
|