Ignore:
Timestamp:
Aug 6, 2006 12:07:13 PM (18 years ago)
Author:
bennylp
Message:

Change AEC into generic echo canceller framework with either AEC or simple echo suppressor backend can be selected during runtime.

File:
1 edited

Legend:

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

    r649 r653  
    970970 
    971971    /* Set AEC */ 
    972     pjmedia_snd_port_set_aec(pjsua_var.snd_port, pjsua_var.pool,  
    973                              pjsua_var.media_cfg.ec_tail_len); 
     972    pjmedia_snd_port_set_ec_tail(pjsua_var.snd_port, pjsua_var.pool,  
     973                                 pjsua_var.media_cfg.ec_tail_len); 
    974974 
    975975    /* Connect sound port to the bridge */        
     
    10451045 * Configure the AEC settings of the sound port. 
    10461046 */ 
    1047 PJ_DEF(pj_status_t) pjsua_set_aec(unsigned tail_ms) 
     1047PJ_DEF(pj_status_t) pjsua_set_ec_tail(unsigned tail_ms) 
    10481048{ 
    10491049    pjsua_var.media_cfg.ec_tail_len = tail_ms; 
    10501050 
    10511051    if (pjsua_var.snd_port) 
    1052         return pjmedia_snd_port_set_aec(pjsua_var.snd_port, pjsua_var.pool, 
    1053                                         tail_ms); 
     1052        return pjmedia_snd_port_set_ec_tail(pjsua_var.snd_port, pjsua_var.pool, 
     1053                                            tail_ms); 
    10541054     
    10551055    return PJ_SUCCESS; 
     
    10601060 * Get current AEC tail length. 
    10611061 */ 
    1062 PJ_DEF(pj_status_t) pjsua_get_aec(unsigned *p_tail_ms) 
     1062PJ_DEF(pj_status_t) pjsua_get_ec_tail(unsigned *p_tail_ms) 
    10631063{ 
    10641064    *p_tail_ms = pjsua_var.media_cfg.ec_tail_len; 
Note: See TracChangeset for help on using the changeset viewer.