Hi nanang, Is portaudio support this new feature for volume control? regards, Gang On Fri, Apr 3, 2009 at 9:16 PM, Nanang Izzuddin <nanang at pjsip.org> wrote: > pjsua_conf_adjust_rx_level() won't work when you are using APS-Direct > + hardware codec, please see > http://trac.pjsip.org/repos/wiki/Nokia_APS_VAS_Direct > > With the new audio device framework (APS-Direct works on it), you can > use pjsua_snd_set_setting(), there is already example for setting > volume in pjsip-apps\src\symbian_ua\ua.cpp, here is the snippet code: > > === > unsigned vol; > pj_status_t status; > > status = pjsua_snd_get_setting( > PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, > &vol); > if (status == PJ_SUCCESS) { > if (kc == EKeyUpArrow) > vol = PJ_MIN(100, vol+10); > else > vol = (vol>=10 ? vol-10 : 0); > status = pjsua_snd_set_setting( > > PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, > &vol, PJ_TRUE); > } > > if (status == PJ_SUCCESS) { > PJ_LOG(3,(THIS_FILE, "Output volume set to %d", vol)); > } else { > pjsua_perror(THIS_FILE, "Error setting volume", status); > } > === > > > Regards, > nanang > > > 2009/4/2 mohamed hassan <e-mohhassan at hotmail.com>: > > Hi all, > > > > I need to increase volume, I try increase by: > > > > pjsua_conf_adjust_rx_level(1, app_config.mic_level); > > > > pjsua_conf_adjust_tx_level(1, app_config.speaker_level); > > > > But still volume low (not acceptable) , I need to increase over that. > What's > > work? > > > > Thanks. > > ________________________________ > > See all the ways you can stay connected to friends and family > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip at lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090406/a93d167b/attachment.html>