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

Added Speex for narrowband, wideband, and ultra-wideband!!

File:
1 edited

Legend:

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

    r277 r278  
    890890{ 
    891891    pj_int16_t *buf; 
     892    pj_bool_t sent = PJ_FALSE; 
    892893    unsigned j; 
    893894 
     
    965966         
    966967        pjmedia_frame frame; 
     968        pj_status_t status; 
    967969 
    968970        frame.type = PJMEDIA_FRAME_TYPE_AUDIO; 
     
    972974 
    973975        if (cport->port) 
    974             return pjmedia_port_put_frame(cport->port, &frame); 
     976            status = pjmedia_port_put_frame(cport->port, &frame); 
    975977        else 
    976             return PJ_SUCCESS; 
     978            status = PJ_SUCCESS; 
     979 
     980        cport->tx_buf_count -= cport->samples_per_frame; 
     981        if (cport->tx_buf_count) { 
     982            copy_samples(cport->tx_buf,  
     983                         cport->tx_buf + cport->samples_per_frame, 
     984                         cport->tx_buf_count); 
     985        } 
     986 
     987        return status; 
    977988    } 
    978989 
Note: See TracChangeset for help on using the changeset viewer.