Misc: Minor changes to filter_ to reduce warnings

(cherry picked from commit e2b1eb9b1077e6516c0cc4e2283e5c886bed0e58)
This commit is contained in:
fundamental
2009-12-10 16:16:18 -05:00
committed by Tobias Doerffel
parent 2585af89de
commit de09a96b4b
4 changed files with 7 additions and 1 deletions

View File

@@ -972,4 +972,5 @@
10 Dec 2009 (Mark McCurry)
- Separated out Presets and arrayed Presets to reduce warnings from
the Wextra flag
- Minor change to Filter_ and FormantFilter to reduce unwanted warnings

View File

@@ -33,7 +33,7 @@ class Filter_
virtual void setfreq(REALTYPE frequency) = 0;
virtual void setfreq_and_q(REALTYPE frequency, REALTYPE q_) = 0;
virtual void setq(REALTYPE q_) = 0;
virtual void setgain(REALTYPE dBgain) {}
virtual void setgain(REALTYPE dBgain) = 0;
REALTYPE outgain;
private:
};

View File

@@ -191,6 +191,10 @@ void FormantFilter::setq(REALTYPE q_)
formant[i]->setq(Qfactor * currentformants[i].q);
}
void FormantFilter::setgain(REALTYPE dBgain)
{}
void FormantFilter::setfreq_and_q(REALTYPE frequency, REALTYPE q_)
{
Qfactor = q_;

View File

@@ -38,6 +38,7 @@ class FormantFilter:public Filter_
void setfreq(REALTYPE frequency);
void setfreq_and_q(REALTYPE frequency, REALTYPE q_);
void setq(REALTYPE q_);
void setgain(REALTYPE dBgain);
void cleanup();
private: