Ignore:
Timestamp:
Aug 2, 2006 6:22:22 PM (18 years ago)
Author:
bennylp
Message:

Added experimental AEC media port (aec_port.[hc]) based on Speex AEC in pjmedia and pjsua-lib.

File:
1 edited

Legend:

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

    r637 r642  
    969969    pj_assert(conf_port != NULL); 
    970970 
    971     /* Connect to the conference port */ 
    972     status = pjmedia_snd_port_connect(pjsua_var.snd_port, conf_port); 
     971    /* Create AEC if it's not created */ 
     972    if (pjsua_var.aec_port == NULL) { 
     973        status = pjmedia_aec_port_create(pjsua_var.pool, conf_port, 
     974                                         conf_port->info.clock_rate *  
     975                                            pjsua_var.media_cfg.ec_tail_len / 
     976                                            1000, 
     977                                         &pjsua_var.aec_port); 
     978        if (status != PJ_SUCCESS) { 
     979            pjsua_perror(THIS_FILE, "Unable to create AEC port", status); 
     980            pjmedia_snd_port_destroy(pjsua_var.snd_port); 
     981            pjsua_var.snd_port = NULL; 
     982            return status; 
     983        } 
     984    } 
     985 
     986    /* Connect to the AEC port */ 
     987    status = pjmedia_snd_port_connect(pjsua_var.snd_port, pjsua_var.aec_port); 
    973988    if (status != PJ_SUCCESS) { 
    974989        pjsua_perror(THIS_FILE, "Unable to connect conference port to " 
Note: See TracChangeset for help on using the changeset viewer.