- Added feature to increase/decrease output volume in symbian_ua
- Removed optimization setting in some MMP files - Added new symbian_ua.pkg in Carbide development for comfortness git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/aps-direct@2500 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
5ba56a594f
commit
08694eaa20
|
@ -6,7 +6,7 @@ SOURCEPATH ..\pjmedia\src\pjmedia-audiodev
|
|||
//
|
||||
// GCCE optimization setting
|
||||
//
|
||||
OPTION GCCE -O2 -fno-unit-at-a-time
|
||||
//OPTION GCCE -O2 -fno-unit-at-a-time
|
||||
|
||||
MACRO PJ_M_I386=1
|
||||
MACRO PJ_SYMBIAN=1
|
||||
|
|
|
@ -11,9 +11,6 @@ SOURCEPATH ..\pjsip-apps\src\symbian_ua
|
|||
MACRO PJ_M_I386=1
|
||||
MACRO PJ_SYMBIAN=1
|
||||
|
||||
OPTION GCCE -O2 -fno-unit-at-a-time
|
||||
SRCDBG
|
||||
|
||||
// Source files
|
||||
|
||||
SOURCE ua.cpp
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
; symbian_ua.pkg
|
||||
|
||||
; Languages
|
||||
&EN
|
||||
|
||||
; Header
|
||||
#{"symbian_ua"},(0x200235D3), 0, 1, 1
|
||||
|
||||
; Platform compatibility
|
||||
[0x101F7961], *, *, *,{"Series60ProductID"}
|
||||
|
||||
; vendor
|
||||
%{"PJSIP"}
|
||||
:"PJSIP"
|
||||
|
||||
; Target
|
||||
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\symbian_ua.exe"-"!:\sys\bin\symbian_ua.exe"
|
||||
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\symbian_ua_reg.rSC"-"!:\private\10003a3f\import\apps\symbian_ua_reg.rSC"
|
|
@ -1,10 +1,13 @@
|
|||
; symbian_ua.pkg
|
||||
; symbian_ua_udeb.pkg
|
||||
|
||||
; for Carbide development, please use symbian_ua.pkg for comfortness
|
||||
; (epoc32 path, platform, and target are set automatically using env vars)
|
||||
|
||||
; Languages
|
||||
&EN
|
||||
|
||||
; Header
|
||||
#{"symbian_ua"},(0xA000000D), 0, 1, 1
|
||||
#{"symbian_ua"},(0x200235D3), 0, 1, 1
|
||||
|
||||
; Platform compatibility
|
||||
[0x101F7961], *, *, *,{"Series60ProductID"}
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
; symbian_ua.pkg
|
||||
|
||||
; for Carbide development, please use symbian_ua.pkg for comfortness
|
||||
; (epoc32 path, platform, and target are set automatically using env vars)
|
||||
|
||||
; Languages
|
||||
&EN
|
||||
|
||||
; Header
|
||||
#{"symbian_ua"},(0xA000000D), 0, 1, 1
|
||||
#{"symbian_ua"},(0x200235D3), 0, 1, 1
|
||||
|
||||
; Platform compatibility
|
||||
[0x101F7961], *, *, *,{"Series60ProductID"}
|
||||
|
|
|
@ -497,6 +497,7 @@ static void PrintMainMenu()
|
|||
#if !defined(PJMEDIA_CONF_USE_SWITCH_BOARD) || PJMEDIA_CONF_USE_SWITCH_BOARD==0
|
||||
" j Toggle loopback audio\n"
|
||||
#endif
|
||||
"up/dn Increase/decrease output volume\n"
|
||||
" s Subscribe " SIP_DST_URI "\n"
|
||||
" S Unsubscribe presence\n"
|
||||
" o Set account online\n"
|
||||
|
@ -532,6 +533,32 @@ static void PrintCodecMenu()
|
|||
static void HandleMainMenu(TKeyCode kc) {
|
||||
switch (kc) {
|
||||
|
||||
case EKeyUpArrow:
|
||||
case EKeyDownArrow:
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 't':
|
||||
{
|
||||
pjmedia_aud_dev_route route;
|
||||
|
|
Loading…
Reference in New Issue