Changeset 653 for pjproject/trunk/pjmedia/include/pjmedia/sound_port.h
- Timestamp:
- Aug 6, 2006 12:07:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/sound_port.h
r648 r653 184 184 185 185 /** 186 * Enable accoustic echo cancellation (AEC) to the specified sound. 187 * The AEC can only be enabled for sound streams with full-duplex direction. 188 * 189 * And note, you should only change the AEC settings when the sound port 190 * is not connected to any downstream ports. 191 * 192 * @param snd_port The sound device port. 193 * @param pool Pool to re-create the AEC if necessary. 186 * Configure the echo cancellation tail length. By default, echo canceller 187 * is enabled in the sound device with the default tail length. After the 188 * sound port is created, application can query the current echo canceller 189 * tail length by calling #pjmedia_snd_port_get_ec_tail. 190 * 191 * Note that you should only change the EC settings when the sound port 192 * is not connected to any downstream ports, otherwise race condition may 193 * occur. 194 * 195 * @param snd_port The sound device port. 196 * @param pool Pool to re-create the echo canceller if necessary. 194 197 * @param tail_ms Maximum echo tail length to be supported, in 195 * miliseconds. If zero is specified, the AEC would198 * miliseconds. If zero is specified, the EC would 196 199 * be disabled. 197 200 * 198 201 * @return PJ_SUCCESS on success. 199 202 */ 200 PJ_DECL(pj_status_t) pjmedia_snd_port_set_ aec(pjmedia_snd_port *snd_port,201 202 203 204 205 /** 206 * Get current AEC tail length, in miliseconds. The tail length will be zero207 * if AEC is not enabled.203 PJ_DECL(pj_status_t) pjmedia_snd_port_set_ec_tail(pjmedia_snd_port *snd_port, 204 pj_pool_t *pool, 205 unsigned tail_ms); 206 207 208 /** 209 * Get current echo canceller tail length, in miliseconds. The tail length 210 * will be zero if EC is not enabled. 208 211 * 209 212 * @param snd_port The sound device port. … … 212 215 * @return PJ_SUCCESS on success. 213 216 */ 214 PJ_DECL(pj_status_t) pjmedia_snd_port_get_ aec_tail(pjmedia_snd_port *snd_port,215 217 PJ_DECL(pj_status_t) pjmedia_snd_port_get_ec_tail(pjmedia_snd_port *snd_port, 218 unsigned *p_length); 216 219 217 220
Note: See TracChangeset
for help on using the changeset viewer.