Commit a7cc8fd1 authored by smorlat's avatar smorlat

equalizer test program update.

cleanup

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@552 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 3891e872
......@@ -457,6 +457,7 @@ void audio_stream_equalizer_set_gain(AudioStream *stream, int frequency, float g
MSEqualizerGain d;
d.frequency=frequency;
d.gain=gain;
d.width=0.4*(float)frequency;
ms_filter_call_method(stream->equalizer,MS_EQUALIZER_SET_GAIN,&d);
}
}
......
......@@ -39,7 +39,6 @@ typedef struct _EqualizerState{
int fir_len;
ms_word16_t *fir;
ms_mem_t *mem; /*memories for filtering computations*/
float width_coef;
bool_t needs_update;
bool_t active;
} EqualizerState;
......@@ -61,7 +60,6 @@ static EqualizerState * equalizer_state_new(int nfft){
s->fir_len=s->nfft;
s->fir=ms_new(ms_word16_t,s->fir_len);
s->mem=ms_new0(ms_mem_t,s->fir_len);
s->width_coef=0.4; /* when setting a gain at 1000hz, we will affect 800-1200 frequency band*/
s->needs_update=TRUE;
s->active=TRUE;
return s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment