Ignore:
Timestamp:
Apr 27, 2006 10:36:40 PM (18 years ago)
Author:
bennylp
Message:

Initial support for stereo codecs, and added L16 codecs. Also better handling for case remote media is restarted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/conference.c

    r358 r411  
    238238    if (port) { 
    239239        conf_port->port = port; 
    240         conf_port->clock_rate = port->info.sample_rate; 
     240        conf_port->clock_rate = port->info.clock_rate; 
    241241        conf_port->samples_per_frame = port->info.samples_per_frame; 
    242242    } else { 
     
    443443    conf->master_port->info.need_info = 0; 
    444444    conf->master_port->info.pt = 0xFF; 
    445     conf->master_port->info.sample_rate = clock_rate; 
     445    conf->master_port->info.clock_rate = clock_rate; 
    446446    conf->master_port->info.samples_per_frame = samples_per_frame; 
    447447    conf->master_port->info.signature = 0; 
     
    10911091    pj_int16_t *buf; 
    10921092    unsigned j; 
     1093    pj_status_t status; 
    10931094 
    10941095    /* If port is muted or nobody is transmitting to this port,  
     
    11811182    } 
    11821183 
    1183     /* If port has the same clock_date and samples_per_frame settings as 
     1184    /* If port has the same clock_rate and samples_per_frame settings as 
    11841185     * the conference bridge, transmit the frame as is. 
    11851186     */ 
     
    12251226    } 
    12261227 
    1227     /* Transmit once we have enough frame in the tx_buf. */ 
    1228     if (cport->tx_buf_count >= cport->samples_per_frame) { 
     1228    /* Transmit while we have enough frame in the tx_buf. */ 
     1229    status = PJ_SUCCESS; 
     1230    while (cport->tx_buf_count >= cport->samples_per_frame && 
     1231           status == PJ_SUCCESS)  
     1232    { 
    12291233         
    1230         pj_status_t status; 
    1231  
    12321234        TRACE_((THIS_FILE, "write_port %.*s: count=%d",  
    12331235                           (int)cport->name.slen, cport->name.ptr, 
     
    12601262        TRACE_((THIS_FILE, " tx_buf count now is %d",  
    12611263                           cport->tx_buf_count)); 
    1262  
    1263         return status; 
    1264     } 
    1265  
    1266     return PJ_SUCCESS; 
     1264    } 
     1265 
     1266    return status; 
    12671267} 
    12681268 
Note: See TracChangeset for help on using the changeset viewer.