Changeset 864 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Dec 26, 2006 2:27:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r863 r864 76 76 pjmedia_snd_port *snd; 77 77 #endif 78 79 float mic_level, 80 speaker_level; 78 81 79 82 } app_config; … … 210 213 cfg->wav_port = PJSUA_INVALID_ID; 211 214 cfg->rec_port = PJSUA_INVALID_ID; 215 cfg->mic_level = cfg->speaker_level = 1.0; 212 216 } 213 217 … … 849 853 PJ_LOG(1,(THIS_FILE, 850 854 "Argument \"%s\" is not valid. Use --help to see help", 851 argv[pj_optind -1]));855 argv[pj_optind])); 852 856 return -1; 853 857 } … … 1838 1842 puts("| dq Dump curr. call quality | cc Connect port | dd Dump detailed |"); 1839 1843 puts("| | cd Disconnect port | dc Dump config |"); 1840 puts("| S Send arbitrary REQUEST | 1844 puts("| S Send arbitrary REQUEST | V Adjust audio Volume | f Save config |"); 1841 1845 puts("+------------------------------+--------------------------+-------------------+"); 1842 1846 puts("| q QUIT |"); … … 2714 2718 break; 2715 2719 2720 case 'V': 2721 /* Adjust audio volume */ 2722 sprintf(buf, "Adjust mic level: [%4.1fx] ", app_config.mic_level); 2723 if (simple_input(buf,text,sizeof(text))) { 2724 char *err; 2725 app_config.mic_level = (float)strtod(text, &err); 2726 pjsua_conf_adjust_rx_level(0, app_config.mic_level); 2727 } 2728 sprintf(buf, "Adjust speaker level: [%4.1fx] ", 2729 app_config.speaker_level); 2730 if (simple_input(buf,text,sizeof(text))) { 2731 char *err; 2732 app_config.speaker_level = (float)strtod(text, &err); 2733 pjsua_conf_adjust_tx_level(0, app_config.speaker_level); 2734 } 2735 2736 break; 2737 2716 2738 case 'd': 2717 2739 if (menuin[1] == 'c') {
Note: See TracChangeset
for help on using the changeset viewer.