silence.h

来自「Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Ma」· C头文件 代码 · 共 101 行

H
101
字号
/**********************************************************************  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 "Effect.h"#include <wx/defs.h>#include <wx/dialog.h>#include <wx/intl.h>#include "Effect.h"class wxSizer;class wxTextCtrl;class EffectSilence:public Effect { public:   EffectSilence() {      length = sDefaultGenerateLen;   }   virtual wxString GetEffectName() {      return wxString(_("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"), length);    }    virtual int GetEffectFlags() {      return BUILTIN_EFFECT | INSERT_EFFECT;   }   virtual bool PromptUser();   virtual bool Process(); private:   double length;};wxSizer *CreateGenerateDialog(const wxString &action, wxWindow * parent, bool call_fit =                             TRUE, bool set_sizer = TRUE);class GenerateDialog:public wxDialog { public:   // constructors and destructors   GenerateDialog(wxWindow * parent, wxWindowID id, const wxString & action,                 const wxPoint & pos = wxDefaultPosition,                 const wxSize & size = wxDefaultSize,                 long style = wxDEFAULT_DIALOG_STYLE);   wxSizer *MakeGenerateDialog(wxWindow * parent, bool call_fit = TRUE,                              bool set_sizer = TRUE);   virtual bool Validate();   virtual bool TransferDataToWindow();   virtual bool TransferDataFromWindow(); private:   // WDR: handler declarations for FilterDialog   void OnCreateSilence(wxCommandEvent & event);   void OnCancel(wxCommandEvent & event); private:   DECLARE_EVENT_TABLE() public:   double length;};#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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?