Changeset 1003:78319a2c8ec0 in mediastreamer2


Ignore:
Timestamp:
Jun 17, 2010 5:21:26 PM (3 years ago)
Author:
Simon Morlat <simon.morlat@…>
Branch:
default
Children:
1004:8d9c7f969c81, 1009:536956674583, 1011:a534bc36b740
Message:

echo canceller works well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/speexec.c

    r1002 r1003  
    3232 
    3333static const int framesize=128; 
     34static const int ref_max_delay=80; 
    3435 
    3536typedef struct SpeexECState{ 
     
    8283        ms_message("Initializing speex echo canceler with framesize=%i, filterlength=%i, delay_samples=%i", 
    8384                s->framesize,s->filterlength,delay_samples); 
    84         s->ref_bytes_limit=3*s->framesize; 
     85        s->ref_bytes_limit=(2*ref_max_delay*s->samplerate)/1000; 
    8586        s->ecstate=speex_echo_state_init(s->framesize,s->filterlength); 
    8687        s->den = speex_preprocess_state_init(s->framesize, s->samplerate); 
Note: See TracChangeset for help on using the changeset viewer.