From: drowe67 Date: Wed, 25 Jun 2014 01:13:28 +0000 (+0000) Subject: error in HPF found by Wu Yong Dong - thanks X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=b10d6e147fb08f670416d3be8028eb3fd51a7a23;p=freetel-svn-tracking.git error in HPF found by Wu Yong Dong - thanks git-svn-id: https://svn.code.sf.net/p/freetel/code@1707 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/sine.c b/codec2-dev/src/sine.c index 44018ee6..d09b1a57 100644 --- a/codec2-dev/src/sine.c +++ b/codec2-dev/src/sine.c @@ -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];