Volume Control in APS-Direct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks nanang. :) 
 
> Date: Fri, 3 Apr 2009 20:16:06 +0700
> From: nanang@xxxxxxxxx
> To: pjsip at lists.pjsip.org
> Subject: Re: Volume Control in APS-Direct
> 
> 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

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090404/b65e8584/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux