/********************************************************************** Audacity: A Digital Audio Editor Silence.h Dominic Mazzoni An effect for the "Generator" menu to add silence. **********************************************************************/ #ifndef __AUDACITY_EFFECT_SILENCE__ #define __AUDACITY_EFFECT_SILENCE__ #include #include #include #include "Generator.h" #include "../widgets/TimeTextCtrl.h" class wxSizer; class wxTextCtrl; class EffectSilence : public Generator { public: EffectSilence() { SetEffectFlags(BUILTIN_EFFECT | INSERT_EFFECT); } virtual wxString GetEffectName() { return wxString(_("Silence...")); } virtual std::set GetEffectCategories() { std::set result; result.insert(wxT("http://lv2plug.in/ns/lv2core#GeneratorPlugin")); return result; } virtual wxString GetEffectIdentifier() { return wxString(wxT("Silence")); } virtual wxString GetEffectAction() { return wxString(_("Generating Silence")); } // Useful only after PromptUser values have been set. virtual wxString GetEffectDescription() { return wxString::Format(_("Applied effect: Generate Silence, %.6lf seconds"), mDuration); } virtual bool PromptUser(); protected: bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack); }; #endif // Indentation settings for Vim and Emacs and unique identifier for Arch, a // version control system. Please do not modify past this point. // // Local Variables: // c-basic-offset: 3 // indent-tabs-mode: nil // End: // // vim: et sts=3 sw=3 // arch-tag: 077860ae-1dc5-4aa0-a70d-dcbd27e92dd5