Changeset 492 for pjproject/trunk/pjmedia/src/pjmedia/conference.c
- Timestamp:
- Jun 6, 2006 6:40:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/conference.c
r481 r492 821 821 } 822 822 823 824 /* 825 * Enum ports. 826 */ 827 PJ_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 823 846 /* 824 847 * Get port info … … 844 867 info->listener = conf_port->listeners; 845 868 info->clock_rate = conf_port->clock_rate; 869 info->channel_count = conf->channel_count; 846 870 info->samples_per_frame = conf_port->samples_per_frame; 871 info->bits_per_sample = conf->bits_per_sample; 847 872 info->tx_adj_level = conf_port->tx_adj_level - NORMAL_LEVEL; 848 873 info->rx_adj_level = conf_port->rx_adj_level - NORMAL_LEVEL;
Note: See TracChangeset
for help on using the changeset viewer.