- Timestamp:
- Mar 10, 2009 3:03:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjsip-apps/src/symbian_ua/ua.cpp
r2498 r2500 498 498 " j Toggle loopback audio\n" 499 499 #endif 500 "up/dn Increase/decrease output volume\n" 500 501 " s Subscribe " SIP_DST_URI "\n" 501 502 " S Unsubscribe presence\n" … … 532 533 static void HandleMainMenu(TKeyCode kc) { 533 534 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; 534 561 535 562 case 't':
Note: See TracChangeset
for help on using the changeset viewer.