Ignore:
Timestamp:
Aug 2, 2006 7:41:37 PM (18 years ago)
Author:
bennylp
Message:

Fix compilation error in MacOS because of recent changes in config.h, also disable AEC by default in pjsua-lib, and added ec-tail option in pjsua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r637 r643  
    127127    puts  ("  --ptime=MSEC        Override codec ptime to MSEC (default=specific)"); 
    128128    puts  ("  --no-vad            Disable VAD/silence detector (default=vad enabled)"); 
     129    puts  ("  --ec-tail=MSEC      Set echo canceller tail length (default=256)"); 
    129130    puts  ("  --ilbc-mode=MODE    Set iLBC codec mode (20 or 30, default is 20)"); 
    130131    puts  ("  --rx-drop-pct=PCT   Drop PCT percent of RX RTP (for pkt lost sim, default: 0)"); 
     
    262263           OPT_PLAY_FILE, OPT_RTP_PORT, OPT_ADD_CODEC, OPT_ILBC_MODE, 
    263264           OPT_COMPLEXITY, OPT_QUALITY, OPT_PTIME, OPT_NO_VAD, 
    264            OPT_RX_DROP_PCT, OPT_TX_DROP_PCT, 
     265           OPT_RX_DROP_PCT, OPT_TX_DROP_PCT, OPT_EC_TAIL, 
    265266           OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS,  
    266267           OPT_DURATION, OPT_NO_TCP, OPT_NO_UDP, 
     
    304305        { "ptime",      1, 0, OPT_PTIME}, 
    305306        { "no-vad",     0, 0, OPT_NO_VAD}, 
     307        { "ec-tail",    1, 0, OPT_EC_TAIL}, 
    306308        { "ilbc-mode",  1, 0, OPT_ILBC_MODE}, 
    307309        { "rx-drop-pct",1, 0, OPT_RX_DROP_PCT}, 
     
    622624        case OPT_NO_VAD: 
    623625            cfg->media_cfg.no_vad = PJ_TRUE; 
     626            break; 
     627 
     628        case OPT_EC_TAIL: 
     629            cfg->media_cfg.ec_tail_len = my_atoi(pj_optarg); 
     630            if (cfg->media_cfg.ec_tail_len > 1000) { 
     631                PJ_LOG(1,(THIS_FILE, "I think the ec-tail length setting " 
     632                          "is too big")); 
     633                return -1; 
     634            } 
    624635            break; 
    625636 
Note: See TracChangeset for help on using the changeset viewer.