Ignore:
Timestamp:
Aug 7, 2006 10:24:52 AM (18 years ago)
Author:
bennylp
Message:

Change set_ec_tail() API to set_ec() in sound port, also change suppressor to reduce mic signal by division rather than zeroing the signal. Also moved out VAD and EC settings to config.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sound_port.c

    r653 r658  
    250250    } 
    251251 
    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     } 
    260252 
    261253    /* Start sound stream. */ 
     
    433425 * Enable AEC 
    434426 */ 
    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) 
     427PJ_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) 
    438431{ 
    439432    pj_status_t status; 
     
    455448        status = pjmedia_echo_create(pool, snd_port->clock_rate,  
    456449                                    snd_port->samples_per_frame,  
    457                                     tail_ms, 0, &snd_port->ec_state); 
     450                                    tail_ms, options, &snd_port->ec_state); 
    458451        if (status != PJ_SUCCESS) 
    459452            snd_port->ec_state = NULL; 
Note: See TracChangeset for help on using the changeset viewer.