Ignore:
Timestamp:
Dec 26, 2006 2:27:14 AM (14 years ago)
Author:
bennylp
Message:

Ticket #51: Added audio level adjustment to PJSUA-API

File:
1 edited

Legend:

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

    r863 r864  
    674674 
    675675 
     676/* 
     677 * Adjust the signal level to be transmitted from the bridge to the  
     678 * specified port by making it louder or quieter. 
     679 */ 
     680PJ_DEF(pj_status_t) pjsua_conf_adjust_tx_level(pjsua_conf_port_id slot, 
     681                                               float level) 
     682{ 
     683    return pjmedia_conf_adjust_tx_level(pjsua_var.mconf, slot, 
     684                                        (int)((level-1) * 128)); 
     685} 
     686 
     687/* 
     688 * Adjust the signal level to be received from the specified port (to 
     689 * the bridge) by making it louder or quieter. 
     690 */ 
     691PJ_DEF(pj_status_t) pjsua_conf_adjust_rx_level(pjsua_conf_port_id slot, 
     692                                               float level) 
     693{ 
     694    return pjmedia_conf_adjust_rx_level(pjsua_var.mconf, slot, 
     695                                        (int)((level-1) * 128)); 
     696} 
     697 
     698 
     699/* 
     700 * Get last signal level transmitted to or received from the specified port. 
     701 */ 
     702PJ_DEF(pj_status_t) pjsua_conf_get_signal_level(pjsua_conf_port_id slot, 
     703                                                unsigned *tx_level, 
     704                                                unsigned *rx_level) 
     705{ 
     706    return pjmedia_conf_get_signal_level(pjsua_var.mconf, slot,  
     707                                         tx_level, rx_level); 
     708} 
     709 
    676710/***************************************************************************** 
    677711 * File player. 
     
    10091043{ 
    10101044    pjmedia_port *conf_port; 
    1011     const pjmedia_snd_dev_info *cap_info, *play_info; 
     1045    const pjmedia_snd_dev_info *play_info; 
    10121046    unsigned clock_rates[] = { 0, 22050, 44100, 48000, 11025, 32000, 8000}; 
    10131047    unsigned selected_clock_rate = 0; 
Note: See TracChangeset for help on using the changeset viewer.