Changeset 658 for pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
- Timestamp:
- Aug 7, 2006 10:24:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
r653 r658 250 250 } 251 251 252 /* Create AEC only when direction is full duplex */253 if (snd_port->dir == PJMEDIA_DIR_CAPTURE_PLAYBACK) {254 status = pjmedia_snd_port_set_ec_tail(snd_port, pool, AEC_TAIL);255 if (status != PJ_SUCCESS) {256 PJ_LOG(4,(THIS_FILE, "Unable to create AEC"));257 snd_port->ec_state = NULL;258 }259 }260 252 261 253 /* Start sound stream. */ … … 433 425 * Enable AEC 434 426 */ 435 PJ_DEF(pj_status_t) pjmedia_snd_port_set_ec_tail(pjmedia_snd_port *snd_port, 436 pj_pool_t *pool, 437 unsigned tail_ms) 427 PJ_DEF(pj_status_t) pjmedia_snd_port_set_ec( pjmedia_snd_port *snd_port, 428 pj_pool_t *pool, 429 unsigned tail_ms, 430 unsigned options) 438 431 { 439 432 pj_status_t status; … … 455 448 status = pjmedia_echo_create(pool, snd_port->clock_rate, 456 449 snd_port->samples_per_frame, 457 tail_ms, 0, &snd_port->ec_state);450 tail_ms, options, &snd_port->ec_state); 458 451 if (status != PJ_SUCCESS) 459 452 snd_port->ec_state = NULL;
Note: See TracChangeset
for help on using the changeset viewer.