search for: speex_preprocess_get_agc_level

Displaying 3 results from an estimated 3 matches for "speex_preprocess_get_agc_level".

2008 Mar 18
1
Patch to make SPEEX_PREPROCESS_GET_AGC_GAIN use dB, and _SET_AGC_LEVEL use a int32
...FLOAT_API case SPEEX_PREPROCESS_SET_AGC_LEVEL: - st->agc_level = (*(float*)ptr); + st->agc_level = (*(spx_int32_t*)ptr); if (st->agc_level<1) st->agc_level=1; if (st->agc_level>32768) st->agc_level=32768; break; case SPEEX_PREPROCESS_GET_AGC_LEVEL: - (*(float*)ptr) = st->agc_level; + (*(spx_int32_t*)ptr) = st->agc_level; break; #endif /* #ifndef DISABLE_FLOAT_API */ case SPEEX_PREPROCESS_SET_AGC_INCREMENT: @@ -1176,7 +1176,7 @@ (*(spx_int32_t*)ptr) = pow(st->loudness, 1.0/LOUDNESS_EXP); break;...
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote: >> The st->zeta pointer isn't freed in the >> speex_preprocess_state_destroy() >> function of the preprocess.c file (alloced in line 167). It's in >> Speex 1.1.4 >> by the way. > > Oops... Thanks for letting me know. I'll change that for the next > release (in the mean time, the fix is
2004 Aug 06
4
Memory leak in denoiser + a few questions
...nt speex_preprocess_ctl(SpeexPreprocessState *st, int request, void *ptr); - +#define SPEEX_PROB_START 0.35 +#define SPEEX_PROB_CONTINUE 0.1 #define SPEEX_PREPROCESS_SET_DENOISE 0 #define SPEEX_PREPROCESS_GET_DENOISE 1 @@ -122,6 +127,12 @@ #define SPEEX_PREPROCESS_SET_AGC_LEVEL 6 #define SPEEX_PREPROCESS_GET_AGC_LEVEL 7 + +#define SPEEX_PREPROCESS_SET_PROB_START 8 +#define SPEEX_PREPROCESS_GET_PROB_START 9 + +#define SPEEX_PREPROCESS_SET_PROB_CONTINUE 10 +#define SPEEX_PREPROCESS_GET_PROB_CONTINUE 11 #ifdef __cplusplus ================================================== } <p><p><p><p&gt...