#ifndef _NOISE_GAIN_H_
#define _NOISE_GAIN_H_


typedef struct audio_noise_gate_struct_def
{
    volatile uint16_t  up_threshold;
    volatile uint16_t  down_threshold;
    volatile uint16_t  audio_fram_len;
} audio_noise_gate_def;


/*
#define  UP_THRESHOLD      60
#define  DOWN_THRESHOLD    20
*/
void noise_gate_init(audio_noise_gate_def temp);
float noise_gate_deal(int16_t *audio,uint32_t num_samples);

#endif
