1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

a little cleanup

This commit is contained in:
v.audacity 2013-05-02 23:22:47 +00:00
parent 829b6839db
commit 70ebaa3cc0

View File

@ -22,6 +22,7 @@ class EffectBassTreble: public EffectTwoPassSimpleMono {
public: public:
EffectBassTreble(); EffectBassTreble();
virtual ~EffectBassTreble() {};
virtual wxString GetEffectName() { virtual wxString GetEffectName() {
return wxString(_("Bass and Treble...")); return wxString(_("Bass and Treble..."));
@ -44,12 +45,11 @@ public:
// Useful only after PromptUser values have been set. // Useful only after PromptUser values have been set.
virtual wxString GetEffectDescription(); virtual wxString GetEffectDescription();
protected:
virtual bool PromptUser(); virtual bool PromptUser();
virtual bool TransferParameters( Shuttle & shuttle ); virtual bool TransferParameters( Shuttle & shuttle );
virtual bool Init(); virtual bool Init();
protected:
virtual bool ProcessPass1(float *buffer, sampleCount len); virtual bool ProcessPass1(float *buffer, sampleCount len);
virtual bool ProcessPass2(float *buffer, sampleCount len); virtual bool ProcessPass2(float *buffer, sampleCount len);
@ -78,15 +78,13 @@ private:
friend class BassTrebleDialog; friend class BassTrebleDialog;
}; };
// class declarations
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// BassTrebleDialog // BassTrebleDialog
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
class BassTrebleDialog:public EffectDialog { class BassTrebleDialog:public EffectDialog {
public: public:
// constructors and destructors
BassTrebleDialog(EffectBassTreble *effect, wxWindow * parent); BassTrebleDialog(EffectBassTreble *effect, wxWindow * parent);
virtual ~BassTrebleDialog() {};
// method declarations for BassTrebleDialog // method declarations for BassTrebleDialog
void PopulateOrExchange(ShuttleGui & S); void PopulateOrExchange(ShuttleGui & S);
@ -114,8 +112,6 @@ private:
wxTextCtrl *mTrebleT; wxTextCtrl *mTrebleT;
wxTextCtrl *mLevelT; wxTextCtrl *mLevelT;
wxCheckBox *mNormalizeCheckBox; wxCheckBox *mNormalizeCheckBox;
DECLARE_EVENT_TABLE()
wxStaticText* mWarning; wxStaticText* mWarning;
public: public:
@ -125,6 +121,8 @@ public:
double treble; double treble;
double level; double level;
bool mbNormalize; bool mbNormalize;
DECLARE_EVENT_TABLE()
}; };
#endif #endif