Ignore:
Timestamp:
Mar 4, 2006 2:52:44 PM (18 years ago)
Author:
bennylp
Message:

Major modification in conference bridge to allow ports with different ptime and sampling rate. Also introduced sampling rate converter

File:
1 edited

Legend:

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

    r268 r277  
    7373    pjsua.stun_port1 = pjsua.stun_port2 = 0; 
    7474 
     75    /* Default: sampling rate is 8000 */ 
     76    pjsua.clock_rate = 8000; 
     77 
    7578    /* Init accounts: */ 
    7679    pjsua.acc_cnt = 1; 
     
    619622    status = pjmedia_conf_create(pjsua.pool,  
    620623                                 pjsua.max_calls+PJSUA_CONF_MORE_PORTS,  
    621                                  8000, 160, 16, &pjsua.mconf); 
     624                                 pjsua.clock_rate,  
     625                                 pjsua.clock_rate * 20 / 1000, 16,  
     626                                 &pjsua.mconf); 
    622627    if (status != PJ_SUCCESS) { 
    623628        pj_caching_pool_destroy(&pjsua.cp); 
Note: See TracChangeset for help on using the changeset viewer.