Ignore:
Timestamp:
May 15, 2018 8:23:44 AM (13 months ago)
Author:
ming
Message:

Closed #2113: Implement conference signal level adjustment for a specific connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r5724 r5792  
    118118 
    119119/////////////////////////////////////////////////////////////////////////////// 
     120AudioMediaTransmitParam::AudioMediaTransmitParam() 
     121: level(1.0) 
     122{ 
     123} 
     124 
    120125AudioMedia::AudioMedia()  
    121126: Media(PJMEDIA_TYPE_AUDIO), id(PJSUA_INVALID_ID), mediaPool(NULL) 
     
    197202{ 
    198203    PJSUA2_CHECK_EXPR( pjsua_conf_connect(id, sink.id) ); 
     204} 
     205 
     206void AudioMedia::startTransmit2(const AudioMedia &sink, 
     207                                const AudioMediaTransmitParam &param) const 
     208     throw(Error) 
     209{ 
     210    pjsua_conf_connect_param pj_param; 
     211     
     212    pjsua_conf_connect_param_default(&pj_param); 
     213    pj_param.level = param.level; 
     214    PJSUA2_CHECK_EXPR( pjsua_conf_connect2(id, sink.id, &pj_param) ); 
    199215} 
    200216 
Note: See TracChangeset for help on using the changeset viewer.