Ignore:
Timestamp:
Jun 6, 2006 6:40:40 PM (18 years ago)
Author:
bennylp
Message:

Another huge chunks of modifications in PJSUA API, too many things to mention!

File:
1 edited

Legend:

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

    r481 r492  
    821821} 
    822822 
     823 
     824/* 
     825 * Enum ports. 
     826 */ 
     827PJ_DEF(pj_status_t) pjmedia_conf_enum_ports( pjmedia_conf *conf, 
     828                                             unsigned ports[], 
     829                                             unsigned *p_count ) 
     830{ 
     831    unsigned i, count=0; 
     832 
     833    PJ_ASSERT_RETURN(conf && p_count && ports, PJ_EINVAL); 
     834 
     835    for (i=0; i<conf->max_ports && count<*p_count; ++i) { 
     836        if (!conf->ports[i]) 
     837            continue; 
     838 
     839        ports[count++] = i; 
     840    } 
     841 
     842    *p_count = count; 
     843    return PJ_SUCCESS; 
     844} 
     845 
    823846/* 
    824847 * Get port info 
     
    844867    info->listener = conf_port->listeners; 
    845868    info->clock_rate = conf_port->clock_rate; 
     869    info->channel_count = conf->channel_count; 
    846870    info->samples_per_frame = conf_port->samples_per_frame; 
     871    info->bits_per_sample = conf->bits_per_sample; 
    847872    info->tx_adj_level = conf_port->tx_adj_level - NORMAL_LEVEL; 
    848873    info->rx_adj_level = conf_port->rx_adj_level - NORMAL_LEVEL; 
Note: See TracChangeset for help on using the changeset viewer.