pjsip 마이크 음성 입력 량 스피커 재생 설정

1227 단어 오디 오 비디오
외국 친구 의 문답 을 참고 하여 찾 은 답안.   주소:http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2011-April/012807.html
pjsip 에서 스피커 설정
int v ;//v      

pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING,(void*)&v,PJ_TRUE);

이것 은 매크로 정의 의 해석 이다.
    /** 
     * Support for setting/retrieving the audio input device volume level.
     * The value of this capability is an unsigned integer representing 
     * the input audio volume setting in percent.
     */
    PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING = 8,

    /** 
     * Support for setting/retrieving the audio output device volume level.
     * The value of this capability is an unsigned integer representing 
     * the output audio volume setting in percent.
     */
    PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING = 16,

원래 계획  마이크 볼 륨 입력 호출, 나중에 테스트 에 성공 하지 못 했 습 니 다.
 pj_status_t status=pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_VOLUME_SETTING,(void*)&v,PJ_TRUE);  //    

... 로 바꾸다  
float volume = 0; //   (0.0 2.0)  
pjsua_conf_adjust_rx_level(0, volume);    //       

       ,        ,     0,           。         ,     ,     。

좋은 웹페이지 즐겨찾기