Ignore:
Timestamp:
Mar 8, 2006 12:37:22 PM (18 years ago)
Author:
bennylp
Message:

Added options to disable microphone device, usefull for streaming server (some systems only have sound player)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r305 r312  
    612612static pj_status_t init_media(void) 
    613613{ 
    614  
     614    unsigned options; 
    615615    pj_status_t status; 
    616616 
     
    733733    } 
    734734 
     735    /* Init options for conference bridge. */ 
     736    options = 0; 
     737    if (pjsua.no_mic) 
     738        options |= PJMEDIA_CONF_NO_MIC; 
     739 
    735740    /* Init conference bridge. */ 
    736741 
     
    739744                                 pjsua.clock_rate,  
    740745                                 pjsua.clock_rate * 20 / 1000, 16,  
     746                                 options, 
    741747                                 &pjsua.mconf); 
    742748    if (status != PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.