aboutsummaryrefslogtreecommitdiffstats
path: root/Project/RTDSP/enhance.c
diff options
context:
space:
mode:
Diffstat (limited to 'Project/RTDSP/enhance.c')
-rw-r--r--Project/RTDSP/enhance.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c
index 09b78d6..a5992ff 100644
--- a/Project/RTDSP/enhance.c
+++ b/Project/RTDSP/enhance.c
@@ -103,7 +103,7 @@ volatile int m_ptr = 0;
float snr_val = 0;
float total_snr = 0;
float lambda = 0.05;
-float alpha[NUM_ALPHA] = {300, 400, 600, 1000};
+float alpha[NUM_ALPHA] = {100, 50, 9, 1};
float avg = 0;
float sum = 0;
float *M[NUM_M];
@@ -267,7 +267,6 @@ void overestimation(void) {
// Low pass filter X(w)
void low_pass_filter(float* current, float* next) {
int w;
- float temp;
for (w = 0; w < FFTLEN; ++w) {
current[w] = (1-K)*current[w] + K*next[w];
next[w] = current[w];