Volume Control in APS-Direct

MH
mohamed hassan
Thu, Apr 2, 2009 9:29 AM

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.


Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx

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. _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx
NI
Nanang Izzuddin
Fri, Apr 3, 2009 1:16 PM

pjsua_conf_adjust_rx_level() won't work when you are using APS-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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
MH
mohamed hassan
Sat, Apr 4, 2009 1:22 PM

Thanks nanang. :)

Date: Fri, 3 Apr 2009 20:16:06 +0700
From: nanang@pjsip.org
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] Volume Control in APS-Direct

pjsua_conf_adjust_rx_level() won't work when you are using APS-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@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@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

Thanks nanang. :) > Date: Fri, 3 Apr 2009 20:16:06 +0700 > From: nanang@pjsip.org > To: pjsip@lists.pjsip.org > Subject: Re: [pjsip] 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@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@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@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
GL
Gang Liu
Mon, Apr 6, 2009 9:26 AM

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@pjsip.org wrote:

pjsua_conf_adjust_rx_level() won't work when you are using APS-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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@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@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
BP
Benny Prijono
Mon, Apr 6, 2009 11:42 AM

On Mon, Apr 6, 2009 at 10:26 AM, Gang Liu gangban.lau@gmail.com wrote:

Hi nanang,
Is portaudio support this new feature for volume control?

As I understand it, we would need portmixer for that, and it's not included
in pjmedia for now. For Win32/Windows Mobile targets we're currently
experimenting with the native WMME audio driver (wmme_dev.c), though it will
take some time to make it ready for prime time (i.e. to replace PA for these
platforms).

cheers
Benny

On Mon, Apr 6, 2009 at 10:26 AM, Gang Liu <gangban.lau@gmail.com> wrote: > Hi nanang, > Is portaudio support this new feature for volume control? > > As I understand it, we would need portmixer for that, and it's not included in pjmedia for now. For Win32/Windows Mobile targets we're currently experimenting with the native WMME audio driver (wmme_dev.c), though it will take some time to make it ready for prime time (i.e. to replace PA for these platforms). cheers Benny