Ignore:
Timestamp:
Oct 27, 2017 6:30:50 AM (6 years ago)
Author:
ming
Message:

Fixed #2053: Update pjsua_get_snd_dev() info before calling on_snd_dev_operation() callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r5676 r5677  
    14471447     * sound device is configured by the application (i.e. the 
    14481448     * #pjsua_set_null_snd_dev() and #pjsua_set_no_snd_dev() APIs). 
    1449      * This API is mostly useful when the application wants to manage 
     1449     * Application can use the API #pjsua_get_snd_dev() to get the info 
     1450     * about which sound device is going to be opened/closed. 
     1451     * 
     1452     * This callback is mostly useful when the application wants to manage 
    14501453     * the sound device by itself (i.e. with #pjsua_set_no_snd_dev()), 
    14511454     * to get notified when it should open or close the sound device. 
     
    64076410} pjsua_media_transport; 
    64086411 
     6412 
     6413/** 
     6414 * Sound device index constants. 
     6415 */ 
     6416typedef enum pjsua_snd_dev_id 
     6417{ 
     6418    /**  
     6419     * Constant to denote default capture device. 
     6420     */ 
     6421    PJSUA_SND_DEFAULT_CAPTURE_DEV = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV, 
     6422 
     6423    /**  
     6424     * Constant to denote default playback device. 
     6425     */ 
     6426    PJSUA_SND_DEFAULT_PLAYBACK_DEV = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV, 
     6427 
     6428    /** 
     6429     * Constant to denote that no sound device is being used. 
     6430     */ 
     6431    PJSUA_SND_NO_DEV = PJMEDIA_AUD_INVALID_DEV, 
     6432 
     6433    /** 
     6434     * Constant to denote null sound device. 
     6435     */ 
     6436    PJSUA_SND_NULL_DEV = -99 
     6437 
     6438} pjsua_snd_dev_id; 
     6439 
    64096440/** 
    64106441 * This enumeration specifies the sound device mode. 
     
    68266857 * (for example when pjsua_start() is not called), it is possible that 
    68276858 * the function returns PJ_SUCCESS with -1 as device IDs. 
     6859 * See also #pjsua_snd_dev_id constants. 
    68286860 * 
    68296861 * @param capture_dev   On return it will be filled with device ID of the  
Note: See TracChangeset for help on using the changeset viewer.