Ignore:
Timestamp:
Aug 7, 2006 10:24:52 AM (18 years ago)
Author:
bennylp
Message:

Change set_ec_tail() API to set_ec() in sound port, also change suppressor to reduce mic signal by division rather than zeroing the signal. Also moved out VAD and EC settings to config.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r653 r658  
    970970 
    971971    /* Set AEC */ 
    972     pjmedia_snd_port_set_ec_tail(pjsua_var.snd_port, pjsua_var.pool,  
    973                                  pjsua_var.media_cfg.ec_tail_len); 
     972    pjmedia_snd_port_set_ec( pjsua_var.snd_port, pjsua_var.pool,  
     973                             pjsua_var.media_cfg.ec_tail_len,  
     974                             pjsua_var.media_cfg.ec_options); 
    974975 
    975976    /* Connect sound port to the bridge */        
     
    10451046 * Configure the AEC settings of the sound port. 
    10461047 */ 
    1047 PJ_DEF(pj_status_t) pjsua_set_ec_tail(unsigned tail_ms) 
     1048PJ_DEF(pj_status_t) pjsua_set_ec(unsigned tail_ms, unsigned options) 
    10481049{ 
    10491050    pjsua_var.media_cfg.ec_tail_len = tail_ms; 
    10501051 
    10511052    if (pjsua_var.snd_port) 
    1052         return pjmedia_snd_port_set_ec_tail(pjsua_var.snd_port, pjsua_var.pool, 
    1053                                             tail_ms); 
     1053        return pjmedia_snd_port_set_ec( pjsua_var.snd_port, pjsua_var.pool, 
     1054                                        tail_ms, options); 
    10541055     
    10551056    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.