Mercurial > hg > audiostuff
diff intercom/aec.h @ 3:c6c5a16ce2f2
compilation fixes
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 09:59:25 +0200 |
parents | 13be24d74cd2 |
children |
line wrap: on
line diff
--- a/intercom/aec.h Fri Jun 25 09:57:52 2010 +0200 +++ b/intercom/aec.h Fri Jun 25 09:59:25 2010 +0200 @@ -303,7 +303,7 @@ */ float dtd(REAL d, REAL x); - void AEC::leaky(); + void leaky(); /* Normalized Least Mean Square Algorithm pre-whitening (NLMS-pw) * The LMS algorithm was developed by Bernard Widrow @@ -327,24 +327,24 @@ * in x: loudspeaker signal * return: echo cancelled microphone signal */ - int AEC::doAEC(int d_, int x_); + int doAEC(int d_, int x_); - float AEC::getambient() { + float getambient() { return dfast; }; - void AEC::setambient(float Min_xf) { + void setambient(float Min_xf) { dotp_xf_xf -= delta; // subtract old delta delta = (NLMS_LEN-1) * Min_xf * Min_xf; dotp_xf_xf += delta; // add new delta }; - void AEC::setgain(float gain_) { + void setgain(float gain_) { gain = gain_; }; - void AEC::openwdisplay(); - void AEC::setaes(float aes_y2_) { + void openwdisplay(); + void setaes(float aes_y2_) { aes_y2 = aes_y2_; }; - double AEC::max_dotp_xf_xf(double u); + double max_dotp_xf_xf(double u); }; #define _AEC_H