Changeset 2497


Ignore:
Timestamp:
Mar 10, 2009 1:28:43 PM (10 years ago)
Author:
bennylp
Message:

Disable echo cancellation related setting from pjsua_aud_get/set_setting()

Location:
pjproject/branches/projects/aps-direct/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip/include/pjsua-lib/pjsua.h

    r2493 r2497  
    49064906 
    49074907/** 
    4908  * Change the echo cancellation settings. Application may also use the 
    4909  * #pjsua_snd_set_setting() to retrieve the echo cancellation setting. 
     4908 * Change the echo cancellation settings. 
    49104909 * 
    49114910 * The behavior of this function depends on whether the sound device is 
     
    49404939 
    49414940/** 
    4942  * Get current echo canceller tail length. Application may also use the 
    4943  * #pjsua_snd_set_setting() to retrieve the echo cancellation setting. 
     4941 * Get current echo canceller tail length.  
    49444942 * 
    49454943 * @param p_tail_ms     Pointer to receive the tail length, in miliseconds.  
     
    49804978 * used. 
    49814979 * 
     4980 * Note also that the echo cancellation setting should be set with  
     4981 * #pjsua_set_ec() API instead. 
     4982 * 
    49824983 * See also #pjmedia_aud_stream_set_cap() for more information about setting 
    49834984 * an audio device capability. 
     
    50035004 * Otherwise, this function will return error. 
    50045005 * 
     5006 * Note that echo cancellation settings should be retrieved with  
     5007 * #pjsua_get_ec_tail() API instead. 
     5008 * 
    50055009 * @param cap           The sound device setting to retrieve. 
    50065010 * @param pval          Pointer to receive the value.  
  • pjproject/branches/projects/aps-direct/pjsip/src/pjsua-lib/pjsua_media.c

    r2496 r2497  
    7777                              PJMEDIA_AUD_DEV_CAP_INPUT_SIGNAL_METER | 
    7878                              PJMEDIA_AUD_DEV_CAP_OUTPUT_SIGNAL_METER); 
     79    /* EC settings use different API */ 
     80    pjsua_var.aud_svmask &= ~(PJMEDIA_AUD_DEV_CAP_EC | 
     81                              PJMEDIA_AUD_DEV_CAP_EC_TAIL); 
    7982 
    8083    /* Copy configuration */ 
Note: See TracChangeset for help on using the changeset viewer.