Changeset 633 for pjproject/trunk/pjmedia/include/pjmedia/conference.h
- Timestamp:
- Jul 29, 2006 11:14:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/conference.h
r622 r633 173 173 174 174 /** 175 * Add stream port to the conference bridge. By default, the new conference 176 * port will have both TX and RX enabled, but it is not connected to any 177 * other ports. 178 * 179 * Application SHOULD call #pjmedia_conf_connect_port() to enable audio 180 * transmission and receipt to/from this port. 175 * Add media port to the conference bridge. 176 * 177 * By default, the new conference port will have both TX and RX enabled, 178 * but it is not connected to any other ports. Application SHOULD call 179 * #pjmedia_conf_connect_port() to enable audio transmission and receipt 180 * to/from this port. 181 * 182 * Once the media port is connected to other port(s) in the bridge, 183 * the bridge will continuosly call get_frame() and put_frame() to the 184 * port, allowing media to flow to/from the port. 181 185 * 182 186 * @param conf The conference bridge. … … 198 202 199 203 204 /** 205 * Create and add a passive media port to the conference bridge. Unlike 206 * "normal" media port that is added with #pjmedia_conf_add_port(), media 207 * port created with this function will not have its get_frame() and 208 * put_frame() called by the bridge; instead, application MUST continuosly 209 * call these functions to the port, to allow media to flow from/to the 210 * port. 211 * 212 * Upon return of this function, application will be given two objects: 213 * the slot number of the port in the bridge, and pointer to the media 214 * port where application MUST start calling get_frame() and put_frame() 215 * to the port. 216 * 217 * @param conf The conference bridge. 218 * @param pool Pool to allocate buffers etc for this port. 219 * @param name Name to be assigned to the port. 220 * @param clock_rate Clock rate/sampling rate. 221 * @param channel_count Number of channels. 222 * @param samples_per_frame Number of samples per frame. 223 * @param bits_per_sample Number of bits per sample. 224 * @param options Options (should be zero at the moment). 225 * @param p_slot Pointer to receive the slot index of the port in 226 * the conference bridge. 227 * @param p_port Pointer to receive the port instance. 228 * 229 * @return PJ_SUCCESS on success, or the appropriate error 230 * code. 231 */ 232 PJ_DECL(pj_status_t) pjmedia_conf_add_passive_port( pjmedia_conf *conf, 233 pj_pool_t *pool, 234 const pj_str_t *name, 235 unsigned clock_rate, 236 unsigned channel_count, 237 unsigned samples_per_frame, 238 unsigned bits_per_sample, 239 unsigned options, 240 unsigned *p_slot, 241 pjmedia_port **p_port ); 242 200 243 201 244 /**
Note: See TracChangeset
for help on using the changeset viewer.