- Timestamp:
- Dec 5, 2013 4:15:24 AM (11 years ago)
- Location:
- pjproject/branches/projects/pjsua2/pjsip
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua-lib/pjsua.h
r4639 r4680 5800 5800 pj_str_t name; 5801 5801 5802 /** Format. */ 5803 pjmedia_format format; 5804 5802 5805 /** Clock rate. */ 5803 5806 unsigned clock_rate; … … 5811 5814 /** Bits per sample */ 5812 5815 unsigned bits_per_sample; 5816 5817 /** Tx level adjustment. */ 5818 float tx_level_adj; 5819 5820 /** Rx level adjustment. */ 5821 float rx_level_adj; 5813 5822 5814 5823 /** Number of listeners in the array. */ -
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/media.hpp
r4676 r4680 123 123 124 124 /** 125 * Tx level adjustment. Value 1.0 means no adjustment, value 0 means 126 * the port is muted, value 2.0 means the level is amplified two times. 127 */ 128 float txLevelAdj; 129 130 /** 131 * Rx level adjustment. Value 1.0 means no adjustment, value 0 means 132 * the port is muted, value 2.0 means the level is amplified two times. 133 */ 134 float rxLevelAdj; 135 136 /** 125 137 * Array of listeners (in other words, ports where this port is 126 138 * transmitting to. … … 133 145 */ 134 146 void fromPj(const pjsua_conf_port_info &port_info); 135 136 147 }; 137 148 … … 238 249 /** 239 250 * Get the last received signal level. 251 * 252 * @return Signal level in percent. 240 253 */ 241 254 unsigned getRxLevel() const throw(Error); … … 243 256 /** 244 257 * Get the last transmitted signal level. 258 * 259 * @return Signal level in percent. 245 260 */ 246 261 unsigned getTxLevel() const throw(Error); -
pjproject/branches/projects/pjsua2/pjsip/src/pjsua-lib/pjsua_aud.c
r4537 r4680 742 742 info->slot_id = id; 743 743 info->name = cinfo.name; 744 info->format = cinfo.format; 744 745 info->clock_rate = cinfo.clock_rate; 745 746 info->channel_count = cinfo.channel_count; 746 747 info->samples_per_frame = cinfo.samples_per_frame; 747 748 info->bits_per_sample = cinfo.bits_per_sample; 749 info->tx_level_adj = ((float)cinfo.tx_adj_level) / 128 + 1; 750 info->rx_level_adj = ((float)cinfo.rx_adj_level) / 128 + 1; 748 751 749 752 /* Build array of listeners */ -
pjproject/branches/projects/pjsua2/pjsip/src/pjsua2/media.cpp
r4678 r4680 76 76 portId = port_info.slot_id; 77 77 name = pj2Str(port_info.name); 78 78 format.fromPj(port_info.format); 79 txLevelAdj = port_info.tx_level_adj; 80 rxLevelAdj = port_info.rx_level_adj; 81 82 /* 79 83 format.id = PJMEDIA_FORMAT_PCM; 80 84 format.type = PJMEDIA_TYPE_AUDIO; … … 90 94 port_info.channel_count * 91 95 port_info.bits_per_sample; 92 96 */ 93 97 listeners.clear(); 94 98 for (unsigned i=0; i<port_info.listener_cnt; ++i) {
Note: See TracChangeset
for help on using the changeset viewer.