Changeset 4950 for pjproject


Ignore:
Timestamp:
Oct 17, 2014 3:25:37 AM (10 years ago)
Author:
ming
Message:

Re #1782 (misc): Fixed return value of AudioMedia::getTxLevel()/getRxLevel()
to be in the range of 0-100, as stated in the doc

File:
1 edited

Legend:

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

    r4897 r4950  
    218218    unsigned level; 
    219219    PJSUA2_CHECK_EXPR( pjsua_conf_get_signal_level(id, &level, NULL) ); 
    220     return level; 
     220    return level * 100 / 255; 
    221221} 
    222222 
     
    225225    unsigned level; 
    226226    PJSUA2_CHECK_EXPR( pjsua_conf_get_signal_level(id, NULL, &level) ); 
    227     return level; 
     227    return level * 100 / 255; 
    228228} 
    229229 
Note: See TracChangeset for help on using the changeset viewer.