error in HPF found by Wu Yong Dong - thanks
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 25 Jun 2014 01:13:28 +0000 (01:13 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 25 Jun 2014 01:13:28 +0000 (01:13 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1707 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/sine.c

index 44018ee680d062a4d823059deed047c1aa5382a5..d09b1a579da98b31658d0cfc878d5472e0cf6417 100644 (file)
@@ -183,7 +183,7 @@ void make_analysis_window(kiss_fft_cfg fft_fwd_cfg, float w[], COMP W[])
 
 float hpf(float x, float states[])
 {
-    states[0] += -HPF_BETA*states[0] + x - states[1];
+    states[0] = -HPF_BETA*states[0] + x - states[1];
     states[1] = x;
 
     return states[0];