Ignore:
Timestamp:
Mar 10, 2009 3:03:04 PM (14 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.