Changeset 2500


Ignore:
Timestamp:
Mar 10, 2009 3:03:04 PM (10 years ago)
Author:
nanang
Message:
  • 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
Location:
pjproject/branches/projects/aps-direct
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/build.symbian/pjmedia_audiodev.mmp

    r2490 r2500  
    77// GCCE optimization setting 
    88// 
    9 OPTION          GCCE -O2 -fno-unit-at-a-time 
     9//OPTION                GCCE -O2 -fno-unit-at-a-time 
    1010 
    1111MACRO           PJ_M_I386=1 
  • pjproject/branches/projects/aps-direct/build.symbian/symbian_ua.mmp

    r2490 r2500  
    1111MACRO                   PJ_M_I386=1 
    1212MACRO                   PJ_SYMBIAN=1 
    13  
    14 OPTION                  GCCE -O2 -fno-unit-at-a-time 
    15 SRCDBG 
    1613 
    1714// Source files 
  • pjproject/branches/projects/aps-direct/build.symbian/symbian_ua_udeb.pkg

    r2499 r2500  
    1 ; symbian_ua.pkg 
     1; symbian_ua_udeb.pkg 
     2 
     3; for Carbide development, please use symbian_ua.pkg for comfortness 
     4; (epoc32 path, platform, and target are set automatically using env vars) 
    25 
    36; Languages 
     
    58 
    69; Header 
    7 #{"symbian_ua"},(0xA000000D), 0, 1, 1 
     10#{"symbian_ua"},(0x200235D3), 0, 1, 1 
    811 
    912; Platform compatibility 
  • pjproject/branches/projects/aps-direct/build.symbian/symbian_ua_urel.pkg

    r1687 r2500  
    11; symbian_ua.pkg 
     2 
     3; for Carbide development, please use symbian_ua.pkg for comfortness 
     4; (epoc32 path, platform, and target are set automatically using env vars) 
    25 
    36; Languages 
     
    58 
    69; Header 
    7 #{"symbian_ua"},(0xA000000D), 0, 1, 1 
     10#{"symbian_ua"},(0x200235D3), 0, 1, 1 
    811 
    912; Platform compatibility 
  • pjproject/branches/projects/aps-direct/pjsip-apps/src/symbian_ua/ua.cpp

    r2498 r2500  
    498498            "  j    Toggle loopback audio\n" 
    499499#endif 
     500            "up/dn  Increase/decrease output volume\n" 
    500501            "  s    Subscribe " SIP_DST_URI "\n" 
    501502            "  S    Unsubscribe presence\n" 
     
    532533static void HandleMainMenu(TKeyCode kc) { 
    533534    switch (kc) { 
     535     
     536    case EKeyUpArrow: 
     537    case EKeyDownArrow: 
     538        { 
     539            unsigned vol; 
     540            pj_status_t status; 
     541             
     542            status = pjsua_snd_get_setting( 
     543                             PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, &vol); 
     544            if (status == PJ_SUCCESS) { 
     545                if (kc == EKeyUpArrow) 
     546                    vol = PJ_MIN(100, vol+10); 
     547                else 
     548                    vol = (vol>=10 ? vol-10 : 0); 
     549                status = pjsua_snd_set_setting( 
     550                                    PJMEDIA_AUD_DEV_CAP_OUTPUT_VOLUME_SETTING, 
     551                                    &vol, PJ_TRUE); 
     552            } 
     553 
     554            if (status == PJ_SUCCESS) { 
     555                PJ_LOG(3,(THIS_FILE, "Output volume set to %d", vol)); 
     556            } else { 
     557                pjsua_perror(THIS_FILE, "Error setting volume", status); 
     558            } 
     559        } 
     560        break; 
    534561     
    535562    case 't': 
Note: See TracChangeset for help on using the changeset viewer.