📄 echo.h
字号:
/********************************************************************** Audacity: A Digital Audio Editor Echo.h Dominic Mazzoni Vaughan Johnson (dialog)**********************************************************************/#ifndef __AUDACITY_EFFECT_ECHO__#define __AUDACITY_EFFECT_ECHO__class wxString;#include <wx/dialog.h>#include <wx/intl.h>#include "Effect.h"class wxStaticText;class WaveTrack;class EffectEcho:public Effect { public: EffectEcho(); virtual wxString GetEffectName() { return wxString(_("Echo...")); } virtual wxString GetEffectAction() { return wxString(_("Performing Echo")); } // Useful only after PromptUser values have been set. virtual wxString GetEffectDescription(); virtual bool PromptUser(); virtual bool TransferParameters( Shuttle & shuttle ); virtual bool Process(); private: bool ProcessOne(int count, WaveTrack * t, longSampleCount start, sampleCount len); float delay; float decay;friend class EchoDialog;};//----------------------------------------------------------------------------// EchoDialog//----------------------------------------------------------------------------class EchoDialog:public wxDialog { public: EchoDialog(EffectEcho * effect, wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE); virtual bool Validate(); virtual bool TransferDataToWindow(); virtual bool TransferDataFromWindow(); private: // handlers void OnPreview( wxCommandEvent &event ); void OnOk(wxCommandEvent & event); void OnCancel(wxCommandEvent & event); private: bool m_bLoopDetect; EffectEcho * m_pEffect; // controls wxTextCtrl * m_pTextCtrl_Delay; wxTextCtrl * m_pTextCtrl_Decay; public: // effect parameters float delay; float decay; private: DECLARE_EVENT_TABLE()};#endif // __AUDACITY_EFFECT_ECHO__// 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: cad436f5-7c97-40a2-8ee9-3748e8f3e56f
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -