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

Implement the missing pjsua_get_snd_dev() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.