Displaying 3 results from an estimated 3 matches for "nb_adapt".
2007 Sep 17
1
Possible fixed point overflow/div 0 preprocess.c
...time.
If I'm off with this one please forgive me, but it has fixed my issues.
I am not
sure whether it is just my compiler (gcc 3.3.5) doing the wrong thing
with the cast.
File: preprocess.c
Arch affected: x86, (others?)
svn revision: 12778
Description:
The SpeexPreprocessState_ member 'nb_adapt' is a signed integer.
nb_adapt is only
modified during 'speex_preprocess_run' when an unbounded increment is
performed. When
calculating 'beta' within 'speex_preprocess_run', I received a floating
point exception
even when compiled with -DFIXED_POINT. The reason is as f...
2008 Feb 21
0
st->nb_loudness_adapt removal patch
Hi,
I've been looking a bit at the VAD/AGC situation. I noticed a leftover
variable declaration. The AGC used to use nb_loudness_adapt to count the
number of frames so far, but it now uses nb_adapt which is shared by all
the functions. However, it still allocates and updates nb_loudness_adapt.
This patch saves 4 bytes of memory and a partial cycle of CPU power ;)
-------------- next part --------------
Index: libspeex/preprocess.c
============================================================...
2008 Feb 19
4
Patch for Analog Devices compiler & fixed-point AGC
...T16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st->ps[i],NOISE_SHIFT)));
}
- filterbank_compute_bank32(st->bank, st->noise, st->noise+N);
+ filterbank_compute_bank32(st->bnk, st->noise, st->noise+N);
/* Special case for first frame */
if (st->nb_adapt==1)
@@ -872,13 +872,13 @@
#endif
}
/* Convert the EM gains and speech prob to linear frequency */
- filterbank_compute_psd16(st->bank,st->gain2+N, st->gain2);
- filterbank_compute_psd16(st->bank,st->gain+N, st->gain);
+ filterbank_compute_psd16(st->bnk,st->gai...