Ignore:
Timestamp:
Apr 4, 2016 1:44:10 AM (8 years ago)
Author:
riza
Message:

Re #1908: Implement new API to open speaker only in pjsua/pjsua2.

File:
1 edited

Legend:

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

    r5242 r5273  
    59985998} pjsua_media_transport; 
    59995999 
     6000/** 
     6001 * This enumeration specifies the sound device mode. 
     6002 */ 
     6003typedef enum pjsua_snd_dev_mode 
     6004{ 
     6005    /** 
     6006     * Open sound device without mic (speaker only). 
     6007     */ 
     6008    PJSUA_SND_DEV_SPEAKER_ONLY = 1, 
     6009 
     6010    /** 
     6011     * Do not open sound device, after setting the sound device. 
     6012     */ 
     6013    PJSUA_SND_DEV_NO_IMMEDIATE_OPEN  = 2 
     6014 
     6015} pjsua_snd_dev_mode; 
     6016 
     6017 
     6018/** 
     6019 * This structure specifies the parameters to set the sound device. 
     6020 * Use pjsua_snd_dev_param_default() to initialize this structure with 
     6021 * default values. 
     6022 */ 
     6023typedef struct pjsua_snd_dev_param 
     6024{ 
     6025    /* 
     6026     * Capture dev id. 
     6027     * 
     6028     * Default: PJMEDIA_AUD_DEFAULT_CAPTURE_DEV 
     6029     */ 
     6030    int                 capture_dev; 
     6031 
     6032    /* 
     6033     * Playback dev id. 
     6034     * 
     6035     * Default: PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV 
     6036     */ 
     6037    int                 playback_dev; 
     6038 
     6039    /* 
     6040     * Sound device mode, refer to #pjsua_snd_dev_mode. 
     6041     * 
     6042     * Default: 0 
     6043     */ 
     6044    unsigned            mode; 
     6045 
     6046} pjsua_snd_dev_param; 
     6047 
     6048 
     6049/** 
     6050 * Initialize pjsua_snd_dev_param with default values. 
     6051 * 
     6052 * @param prm           The parameter. 
     6053 */ 
     6054PJ_DECL(void) pjsua_snd_dev_param_default(pjsua_snd_dev_param *prm); 
     6055 
    60006056 
    60016057/** 
     
    63856441                                       int playback_dev); 
    63866442 
     6443/** 
     6444 * Select or change sound device according to the specified param. 
     6445 * 
     6446 * @param snd_param     Sound device param.  
     6447 * 
     6448 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     6449 */ 
     6450PJ_DECL(pj_status_t) pjsua_set_snd_dev2(pjsua_snd_dev_param *snd_param); 
     6451 
    63876452 
    63886453/** 
Note: See TracChangeset for help on using the changeset viewer.