Changeset 925 for pjproject/trunk


Ignore:
Timestamp:
Feb 1, 2007 7:25:50 PM (18 years ago)
Author:
bennylp
Message:

Implement the missing pjsua_get_snd_dev() function

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/py_pjsua/py_pjsua.c

    r924 r925  
    82298229        pjsua_enum_snd_devs_doc 
    82308230    }, 
    8231     /*{ 
     8231    { 
    82328232        "get_snd_dev", py_pjsua_get_snd_dev, METH_VARARGS, 
    82338233        pjsua_get_snd_dev_doc 
    8234     },*/ 
     8234    }, 
    82358235    { 
    82368236        "set_snd_dev", py_pjsua_set_snd_dev, METH_VARARGS, 
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r918 r925  
    40754075 * 
    40764076 * \par Python: 
    4077  * The function takes no argument and return a tuple: 
     4077 * The function takes no argument and return an (integer,integer) tuple: 
    40784078 * \code 
    40794079    capture_dev, playback_dev = py_pjsua.get_snd_dev() 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r911 r925  
    12431243 
    12441244/* 
     1245 * Get currently active sound devices. If sound devices has not been created 
     1246 * (for example when pjsua_start() is not called), it is possible that 
     1247 * the function returns PJ_SUCCESS with -1 as device IDs. 
     1248 */ 
     1249PJ_DEF(pj_status_t) pjsua_get_snd_dev(int *capture_dev, 
     1250                                      int *playback_dev) 
     1251{ 
     1252    if (capture_dev) { 
     1253        *capture_dev = pjsua_var.cap_dev; 
     1254    } 
     1255    if (playback_dev) { 
     1256        *playback_dev = pjsua_var.play_dev; 
     1257    } 
     1258 
     1259    return PJ_SUCCESS; 
     1260} 
     1261 
     1262 
     1263/* 
    12451264 * Use null sound device. 
    12461265 */ 
Note: See TracChangeset for help on using the changeset viewer.