Changeset 651
- Timestamp:
- Aug 5, 2006 11:13:58 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r618 r651 58 58 #ifndef PJMEDIA_SOUND_IMPLEMENTATION 59 59 # if defined(PJ_WIN32) && PJ_WIN32!=0 60 # define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_WIN32_DIRECT_SOUND 60 /*# define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_WIN32_DIRECT_SOUND*/ 61 # define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND 61 62 # else 62 63 # define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r643 r651 918 918 } 919 919 /* Media clock rate. */ 920 if (config->media_cfg.clock_rate ) {920 if (config->media_cfg.clock_rate != PJSUA_DEFAULT_CLOCK_RATE) { 921 921 pj_ansi_sprintf(line, "--clock-rate %d\n", 922 922 config->media_cfg.clock_rate); 923 923 pj_strcat2(&cfg, line); 924 } 925 if (config->media_cfg.quality != 10) { 924 } else { 925 pj_ansi_sprintf(line, "#using default --clock-rate %d\n", 926 config->media_cfg.clock_rate); 927 pj_strcat2(&cfg, line); 928 } 929 930 /* quality */ 931 if (config->media_cfg.quality != PJSUA_DEFAULT_CODEC_QUALITY) { 926 932 pj_ansi_sprintf(line, "--quality %d\n", 933 config->media_cfg.quality); 934 pj_strcat2(&cfg, line); 935 } else { 936 pj_ansi_sprintf(line, "#using default --quality %d\n", 927 937 config->media_cfg.quality); 928 938 pj_strcat2(&cfg, line); … … 936 946 pj_strcat2(&cfg, line); 937 947 } 948 949 /* no-vad */ 950 if (config->media_cfg.no_vad) { 951 pj_strcat2(&cfg, "--no-vad\n"); 952 } 953 954 /* ec-tail */ 955 if (config->media_cfg.ec_tail_len != PJSUA_DEFAULT_EC_TAIL_LEN) { 956 pj_ansi_sprintf(line, "--ec-tail %d\n", 957 config->media_cfg.ec_tail_len); 958 pj_strcat2(&cfg, line); 959 } else { 960 pj_ansi_sprintf(line, "#using default --ec-tail %d\n", 961 config->media_cfg.ec_tail_len); 962 pj_strcat2(&cfg, line); 963 } 964 965 966 /* ilbc-mode */ 967 if (config->media_cfg.ilbc_mode != PJSUA_DEFAULT_ILBC_MODE) { 968 pj_ansi_sprintf(line, "--ilbc-mode %d\n", 969 config->media_cfg.ilbc_mode); 970 pj_strcat2(&cfg, line); 971 } else { 972 pj_ansi_sprintf(line, "#using default --ilbc-mode %d\n", 973 config->media_cfg.ilbc_mode); 974 pj_strcat2(&cfg, line); 975 } 976 977 /* RTP drop */ 978 if (config->media_cfg.tx_drop_pct) { 979 pj_ansi_sprintf(line, "--tx-drop-pct %d\n", 980 config->media_cfg.tx_drop_pct); 981 pj_strcat2(&cfg, line); 982 983 } 984 if (config->media_cfg.rx_drop_pct) { 985 pj_ansi_sprintf(line, "--rx-drop-pct %d\n", 986 config->media_cfg.rx_drop_pct); 987 pj_strcat2(&cfg, line); 988 989 } 990 938 991 939 992 /* Start RTP port. */ -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r648 r651 2040 2040 #endif 2041 2041 2042 #define PJSUA_DEFAULT_CLOCK_RATE 16000 2043 #define PJSUA_DEFAULT_CODEC_QUALITY 5 2044 #define PJSUA_DEFAULT_ILBC_MODE 20 2045 #define PJSUA_DEFAULT_EC_TAIL_LEN 256 2042 2046 2043 2047 … … 2088 2092 * number. 2089 2093 * 2090 * Default: 6.2094 * Default: 5 (PJSUA_DEFAULT_CODEC_QUALITY). 2091 2095 */ 2092 2096 unsigned quality; … … 2109 2113 * iLBC mode (20 or 30). 2110 2114 * 2111 * Default: 20 2115 * Default: 20 (PJSUA_DEFAULT_ILBC_MODE) 2112 2116 */ 2113 2117 unsigned ilbc_mode; … … 2132 2136 * Echo canceller tail length, in miliseconds. 2133 2137 * 2134 * Default: 0 (disabled, for now)2138 * Default: 128 (PJSUA_DEFAULT_EC_TAIL_LEN) 2135 2139 */ 2136 2140 unsigned ec_tail_len; … … 2147 2151 pj_bzero(cfg, sizeof(*cfg)); 2148 2152 2149 cfg->clock_rate = 16000;2153 cfg->clock_rate = PJSUA_DEFAULT_CLOCK_RATE; 2150 2154 cfg->max_media_ports = 32; 2151 2155 cfg->has_ioqueue = PJ_TRUE; 2152 2156 cfg->thread_cnt = 1; 2153 cfg->quality = 6;2154 cfg->ilbc_mode = 20;2155 cfg->ec_tail_len = 500;2157 cfg->quality = PJSUA_DEFAULT_CODEC_QUALITY; 2158 cfg->ilbc_mode = PJSUA_DEFAULT_ILBC_MODE; 2159 cfg->ec_tail_len = PJSUA_DEFAULT_EC_TAIL_LEN; 2156 2160 } 2157 2161 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r637 r651 796 796 797 797 if (!call->inv) { 798 PJ_LOG(3,(THIS_FILE," Call has been disconnected"));798 PJ_LOG(3,(THIS_FILE,"Invalid call or call has been disconnected")); 799 799 PJSUA_UNLOCK(); 800 800 return PJ_EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.