diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-26 17:04:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-26 17:04:54 +0000 |
commit | 2fa99a7ade8748fae314aeab2fea83e9bc88c36c (patch) | |
tree | 689c1cb15f7e7304b955e296748c800ce430542d /pjmedia/src/pjmedia-codec/speex/ltp_arm4.h | |
parent | d80219f36636faa876c84b586e7b4b4815767be3 (diff) |
- Bring speex codec up to date with their SVN trunk
- Speex codec should work in FIXED_POINT mode when PJ_HAS_FLOATING_POINT is set to zero.
- ulaw2linear will return zero if zero is given (this would make the VAD works better, and it also fixed click noise when call is established/hangup).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@628 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-codec/speex/ltp_arm4.h')
-rw-r--r-- | pjmedia/src/pjmedia-codec/speex/ltp_arm4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia-codec/speex/ltp_arm4.h b/pjmedia/src/pjmedia-codec/speex/ltp_arm4.h index a5a0beeb..7479e8bf 100644 --- a/pjmedia/src/pjmedia-codec/speex/ltp_arm4.h +++ b/pjmedia/src/pjmedia-codec/speex/ltp_arm4.h @@ -33,7 +33,7 @@ */ #define OVERRIDE_INNER_PROD -static spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) +spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len) { spx_word32_t sum1=0,sum2=0; spx_word16_t *deadx, *deady; @@ -84,7 +84,7 @@ static spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int } #define OVERRIDE_PITCH_XCORR -static void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int nb_pitch, char *stack) +void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int nb_pitch, char *stack) { int i,j; for (i=0;i<nb_pitch;i+=4) |