Ignore:
Timestamp:
Aug 6, 2006 12:07:13 PM (18 years ago)
Author:
bennylp
Message:

Change AEC into generic echo canceller framework with either AEC or simple echo suppressor backend can be selected during runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/sound_port.h

    r648 r653  
    184184 
    185185/** 
    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. 
    194197 * @param tail_ms           Maximum echo tail length to be supported, in 
    195  *                          miliseconds. If zero is specified, the AEC would 
     198 *                          miliseconds. If zero is specified, the EC would 
    196199 *                          be disabled. 
    197200 * 
    198201 * @return                  PJ_SUCCESS on success. 
    199202 */ 
    200 PJ_DECL(pj_status_t) pjmedia_snd_port_set_aec(pjmedia_snd_port *snd_port, 
    201                                               pj_pool_t *pool, 
    202                                               unsigned tail_ms); 
    203  
    204  
    205 /** 
    206  * Get current AEC tail length, in miliseconds. The tail length will be zero 
    207  * if AEC is not enabled. 
     203PJ_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. 
    208211 * 
    209212 * @param snd_port          The sound device port. 
     
    212215 * @return                  PJ_SUCCESS on success. 
    213216 */ 
    214 PJ_DECL(pj_status_t) pjmedia_snd_port_get_aec_tail(pjmedia_snd_port *snd_port, 
    215                                                    unsigned *p_length); 
     217PJ_DECL(pj_status_t) pjmedia_snd_port_get_ec_tail(pjmedia_snd_port *snd_port, 
     218                                                  unsigned *p_length); 
    216219 
    217220 
Note: See TracChangeset for help on using the changeset viewer.