diff options
author | ymherklotz <ymherklotz@gmail.com> | 2018-03-22 20:20:59 +0000 |
---|---|---|
committer | ymherklotz <ymherklotz@gmail.com> | 2018-03-22 20:20:59 +0000 |
commit | e70e9cc6dba2ad42dca52e8a8582f9c074cdb1f7 (patch) | |
tree | 171a5abd8183a5a287b489ebe0126658c6b3c512 /Project/RTDSP/enhance.c | |
parent | 6fb44833cceb12509fcc7c971fdff4aa66c7efaa (diff) | |
download | NoiseSilencer-e70e9cc6dba2ad42dca52e8a8582f9c074cdb1f7.tar.gz NoiseSilencer-e70e9cc6dba2ad42dca52e8a8582f9c074cdb1f7.zip |
Adding wav files
Diffstat (limited to 'Project/RTDSP/enhance.c')
-rw-r--r-- | Project/RTDSP/enhance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c index 16ceac2..f244925 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -49,12 +49,12 @@ #define OVERSAMP 4 /* oversampling ratio (2 or 4) */ #define FRAMEINC (FFTLEN/OVERSAMP) /* Frame increment */ #define CIRCBUF (FFTLEN+FRAMEINC) /* length of I/O buffers */ -#define FRAME_TIME 2.5 -#define MAX_COUNT 20000 +#define FRAME_TIME 1 +#define MAX_COUNT (FRAME_TIME * FSAMP) #define MAX_FLOAT 3.4E+38 #define OUTGAIN 16000.0 /* Output gain for DAC */ #define INGAIN (1.0/16000.0) /* Input gain for ADC */ -#define NUM_M 4 +#define NUM_M 2 #define NUM_ALPHA 4 // PI defined here for use in your code #define PI 3.141592653589793 @@ -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] = {100, 50, 20, 5}; +float alpha[NUM_ALPHA] = {100, 100, 50, 10}; float avg = 0; float sum = 0; float *M[NUM_M]; |