Changeset 312 for pjproject/trunk/pjmedia/include/pjmedia/conference.h
- Timestamp:
- Mar 8, 2006 12:37:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/conference.h
r277 r312 41 41 typedef struct pjmedia_conf_port_info 42 42 { 43 unsigned slot; 44 pj_str_t name; 45 pjmedia_port_op tx_setting; 46 pjmedia_port_op rx_setting; 47 pj_bool_t *listener; 48 unsigned clock_rate; 49 unsigned samples_per_frame; 43 unsigned slot; /**< Slot number. */ 44 pj_str_t name; /**< Port name. */ 45 pjmedia_port_op tx_setting; /**< Transmit settings. */ 46 pjmedia_port_op rx_setting; /**< Receive settings. */ 47 pj_bool_t *listener; /**< Array of listeners. */ 48 unsigned clock_rate; /**< Clock rate of the port. */ 49 unsigned samples_per_frame; /**< Samples per frame */ 50 50 } pjmedia_conf_port_info; 51 51 52 52 53 53 /** 54 * Create conference bridge. 54 * Conference port options. The values here can be combined in bitmask to 55 * be specified when the conference bridge is created. 56 */ 57 enum pjmedia_conf_option 58 { 59 PJMEDIA_CONF_NO_MIC = 1, /**< Disable audio streams from the 60 microphone device. */ 61 }; 62 63 64 /** 65 * Create conference bridge. This normally will also create instances of 66 * sound device to be attached to the port zero of the bridge. 67 * 68 * @param pool Pool to use to allocate the bridge and 69 * additional buffers for the sound device. 70 * @param max_slots Maximum number of slots/ports to be created in 71 * the bridge. Note that the bridge internally uses 72 * one port for the sound device, so the actual 73 * maximum number of ports will be less one than 74 * this value. 75 * @param sampling_rate Set the sampling rate of the bridge. This value 76 * is also used to set the sampling rate of the 77 * sound device. 78 * @param samples_per_frame Set the number of samples per frame. This value 79 * is also used to set the sound device. 80 * @param bits_per_sample Set the number of bits per sample. This value 81 * is also used to set the sound device. Currently 82 * only 16bit per sample is supported. 83 * @param options Bitmask options to be set for the bridge. The 84 * options are constructed from #pjmedia_conf_option 85 * enumeration. 86 * @param p_conf Pointer to receive the conference bridge instance. 87 * 88 * @return PJ_SUCCESS if conference bridge can be created. 55 89 */ 56 90 PJ_DECL(pj_status_t) pjmedia_conf_create( pj_pool_t *pool, … … 59 93 unsigned samples_per_frame, 60 94 unsigned bits_per_sample, 95 unsigned options, 61 96 pjmedia_conf **p_conf ); 62 97 … … 64 99 /** 65 100 * Destroy conference bridge. 101 * 102 * @param conf The conference bridge. 103 * 104 * @return PJ_SUCCESS on success. 66 105 */ 67 106 PJ_DECL(pj_status_t) pjmedia_conf_destroy( pjmedia_conf *conf );
Note: See TracChangeset
for help on using the changeset viewer.