Changeset 5273 for pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
- Timestamp:
- Apr 4, 2016 1:44:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r5242 r5273 5998 5998 } pjsua_media_transport; 5999 5999 6000 /** 6001 * This enumeration specifies the sound device mode. 6002 */ 6003 typedef 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 */ 6023 typedef 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 */ 6054 PJ_DECL(void) pjsua_snd_dev_param_default(pjsua_snd_dev_param *prm); 6055 6000 6056 6001 6057 /** … … 6385 6441 int playback_dev); 6386 6442 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 */ 6450 PJ_DECL(pj_status_t) pjsua_set_snd_dev2(pjsua_snd_dev_param *snd_param); 6451 6387 6452 6388 6453 /**
Note: See TracChangeset
for help on using the changeset viewer.