Ignore:
Timestamp:
Feb 17, 2009 3:19:45 PM (11 years ago)
Author:
bennylp
Message:

Added bitrate and vad info in pjmedia_format, and changed audio route to use enumeration rather than boolean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip-apps/src/pjsua/pjsua_app.c

    r2454 r2457  
    24342434    pjmedia_port *conf; 
    24352435    pjmedia_session_info sess_info; 
     2436    pjmedia_port *port; 
    24362437    pjmedia_stream_info *strm_info; 
    24372438    pjmedia_snd_setting setting; 
     
    24462447    strm_info = &sess_info.stream_info[stream_idx]; 
    24472448 
     2449    pjmedia_session_get_port(sess, stream_idx, &port); 
     2450 
    24482451    /* Init sound device setting based on stream info. */ 
    24492452    pj_bzero(&setting, sizeof(setting)); 
    2450     setting.format = strm_info->param->info.format; 
    2451     setting.bitrate = strm_info->param->info.avg_bps; 
     2453    setting.format = port->info.format; 
    24522454    setting.cng = strm_info->param->setting.cng; 
    2453     setting.vad = strm_info->param->setting.vad; 
    24542455    setting.plc = strm_info->param->setting.plc; 
    24552456 
Note: See TracChangeset for help on using the changeset viewer.