Ignore:
Timestamp:
Jul 26, 2006 5:04:54 PM (18 years ago)
Author:
bennylp
Message:
  • 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).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex/kiss_fft.c

    r523 r628  
    3333    do { \ 
    3434        if ( nbuf < (size_t)(n) ) {\ 
    35             free(buf); \ 
     35            speex_free(buf); \ 
    3636            buf = (kiss_fft_cpx*)KISS_FFT_MALLOC(sizeof(kiss_fft_cpx)*(n)); \ 
    3737            nbuf = (size_t)(n); \ 
     
    8888       int i; 
    8989       kiss_fft_cpx *x=Fout; 
    90        for (i=0;i<(int)(4*m);i++) 
     90       for (i=0;i<4*m;i++) 
    9191       { 
    9292          x[i].r = PSHR16(x[i].r,2); 
     
    405405        CHECKBUF(tmpbuf,ntmpbuf,st->nfft); 
    406406        kf_work(tmpbuf,fin,1,in_stride, st->factors,st); 
    407         memcpy(fout,tmpbuf,sizeof(kiss_fft_cpx)*st->nfft); 
     407        speex_move(fout,tmpbuf,sizeof(kiss_fft_cpx)*st->nfft); 
    408408    }else{ 
    409409        kf_work( fout, fin, 1,in_stride, st->factors,st ); 
     
    422422void kiss_fft_cleanup(void) 
    423423{ 
    424     free(scratchbuf); 
     424    speex_free(scratchbuf); 
    425425    scratchbuf = NULL; 
    426426    nscratchbuf=0; 
    427     free(tmpbuf); 
     427    speex_free(tmpbuf); 
    428428    tmpbuf=NULL; 
    429429    ntmpbuf=0; 
Note: See TracChangeset for help on using the changeset viewer.