Ignore:
Timestamp:
Nov 27, 2006 9:54:03 AM (14 years ago)
Author:
bennylp
Message:

Display actual sound device name in conference bridge port zero

File:
1 edited

Legend:

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

    r815 r833  
    10131013    unsigned selected_clock_rate = 0; 
    10141014    unsigned i; 
     1015    pjmedia_snd_stream *strm; 
     1016    pjmedia_snd_stream_info si; 
     1017    pj_str_t tmp; 
    10151018    pj_status_t status = -1; 
    10161019 
     
    10181021    close_snd_dev(); 
    10191022 
    1020  
    1021     cap_info = pjmedia_snd_get_dev_info(capture_dev); 
    1022     play_info = pjmedia_snd_get_dev_info(playback_dev); 
    10231023 
    10241024    /* Set default clock rate */ 
     
    10951095    pjsua_var.play_dev = playback_dev; 
    10961096 
     1097    /* Update sound device name. */ 
     1098    strm = pjmedia_snd_port_get_snd_stream(pjsua_var.snd_port); 
     1099    pjmedia_snd_stream_get_info(strm, &si); 
     1100    play_info = pjmedia_snd_get_dev_info(si.rec_id); 
     1101 
     1102    pjmedia_conf_set_port0_name(pjsua_var.mconf,  
     1103                                pj_cstr(&tmp, play_info->name)); 
     1104 
    10971105    return PJ_SUCCESS; 
    10981106} 
Note: See TracChangeset for help on using the changeset viewer.