Changeset 643
- Timestamp:
- Aug 2, 2006 7:41:37 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/config.h
r640 r643 173 173 174 174 175 #elif defined(PJ_M_MIPS) || defined(__mips__) || defined(__mips) || \ \175 #elif defined(PJ_M_MIPS) || defined(__mips__) || defined(__mips) || \ 176 176 defined(__MIPS__) || defined(MIPS) || defined(_MIPS_) 177 177 /* 178 * MIPS, little endian178 * MIPS, default to little endian 179 179 */ 180 180 # undef PJ_M_MIPS … … 182 182 # define PJ_M_NAME "mips" 183 183 # define PJ_HAS_PENTIUM 0 184 # define PJ_IS_LITTLE_ENDIAN 1 185 # define PJ_IS_BIG_ENDIAN 0 184 # if !defined(PJ_IS_LITTLE_ENDIAN) && !defined(PJ_IS_BIG_ENDIAN) 185 # define PJ_IS_LITTLE_ENDIAN 1 186 # define PJ_IS_BIG_ENDIAN 0 187 # endif 186 188 187 189 … … 221 223 # define PJ_M_NAME "powerpc" 222 224 # define PJ_HAS_PENTIUM 0 223 # define PJ_IS_LITTLE_ENDIAN 1224 # define PJ_IS_BIG_ENDIAN 0225 # define PJ_IS_LITTLE_ENDIAN 0 226 # define PJ_IS_BIG_ENDIAN 1 225 227 226 228 #else -
pjproject/trunk/pjmedia/build/Makefile
r637 r643 51 51 $(CFLAGS) $(CC_INC)../include $(CC_INC)../../pjlib/include \ 52 52 $(CC_INC)../../pjlib-util/include \ 53 $(CC_INC)../src/pjmedia/portaudio 53 $(CC_INC)../src/pjmedia/portaudio \ 54 $(CC_INC)../src/pjmedia-codec 54 55 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 55 56 $(HOST_CXXFLAGS) $(CXXFLAGS) … … 65 66 export PJMEDIA_SRCDIR = ../src/pjmedia 66 67 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 67 a law_ulaw.o \68 aec_port.o alaw_ulaw.o \ 68 69 clock_thread.o codec.o conference.o endpoint.o errno.o \ 69 70 g711.o jbuf.o master_port.o mem_capture.o mem_player.o \ -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex/misc.h
r628 r643 63 63 #endif 64 64 #ifdef FIXED_POINT_DEBUG 65 #error Don 't you think enabling fixed-point is a good thing to do if you want to debug that?65 #error Dont you think enabling fixed-point is a good thing to do if you want to debug that? 66 66 #endif 67 67 -
pjproject/trunk/pjmedia/src/pjmedia/aec_port.c
r642 r643 94 94 *p_port = &aec_port->base; 95 95 96 PJ_LOG(4,(THIS_FILE, "AEC created for port %.*s", 96 PJ_LOG(4,(THIS_FILE, "AEC created for port %.*s, clock_rate=%d, " 97 "samples per frame=%d, tail length=%d ms", 97 98 (int)dn_port->info.name.slen, 98 dn_port->info.name.ptr)); 99 dn_port->info.name.ptr, 100 dn_port->info.clock_rate, 101 dn_port->info.samples_per_frame, 102 tail_length * 1000 / dn_port->info.clock_rate)); 99 103 return PJ_SUCCESS; 100 104 } -
pjproject/trunk/pjsip-apps/build/Makefile
r581 r643 27 27 $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 28 28 $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 29 $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 29 30 $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 30 31 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \ -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r637 r643 127 127 puts (" --ptime=MSEC Override codec ptime to MSEC (default=specific)"); 128 128 puts (" --no-vad Disable VAD/silence detector (default=vad enabled)"); 129 puts (" --ec-tail=MSEC Set echo canceller tail length (default=256)"); 129 130 puts (" --ilbc-mode=MODE Set iLBC codec mode (20 or 30, default is 20)"); 130 131 puts (" --rx-drop-pct=PCT Drop PCT percent of RX RTP (for pkt lost sim, default: 0)"); … … 262 263 OPT_PLAY_FILE, OPT_RTP_PORT, OPT_ADD_CODEC, OPT_ILBC_MODE, 263 264 OPT_COMPLEXITY, OPT_QUALITY, OPT_PTIME, OPT_NO_VAD, 264 OPT_RX_DROP_PCT, OPT_TX_DROP_PCT, 265 OPT_RX_DROP_PCT, OPT_TX_DROP_PCT, OPT_EC_TAIL, 265 266 OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 266 267 OPT_DURATION, OPT_NO_TCP, OPT_NO_UDP, … … 304 305 { "ptime", 1, 0, OPT_PTIME}, 305 306 { "no-vad", 0, 0, OPT_NO_VAD}, 307 { "ec-tail", 1, 0, OPT_EC_TAIL}, 306 308 { "ilbc-mode", 1, 0, OPT_ILBC_MODE}, 307 309 { "rx-drop-pct",1, 0, OPT_RX_DROP_PCT}, … … 622 624 case OPT_NO_VAD: 623 625 cfg->media_cfg.no_vad = PJ_TRUE; 626 break; 627 628 case OPT_EC_TAIL: 629 cfg->media_cfg.ec_tail_len = my_atoi(pj_optarg); 630 if (cfg->media_cfg.ec_tail_len > 1000) { 631 PJ_LOG(1,(THIS_FILE, "I think the ec-tail length setting " 632 "is too big")); 633 return -1; 634 } 624 635 break; 625 636 -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r642 r643 2132 2132 * Echo canceller tail length, in miliseconds. 2133 2133 * 2134 * Default: 2562134 * Default: 0 (disabled, for now) 2135 2135 */ 2136 2136 unsigned ec_tail_len; … … 2153 2153 cfg->quality = 6; 2154 2154 cfg->ilbc_mode = 20; 2155 cfg->ec_tail_len = 256;2155 cfg->ec_tail_len = 0; 2156 2156 } 2157 2157 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r642 r643 970 970 971 971 /* Create AEC if it's not created */ 972 if (pjsua_var.aec_port == NULL ) {972 if (pjsua_var.aec_port == NULL && pjsua_var.media_cfg.ec_tail_len) { 973 973 status = pjmedia_aec_port_create(pjsua_var.pool, conf_port, 974 974 conf_port->info.clock_rate * … … 985 985 986 986 /* Connect to the AEC port */ 987 status = pjmedia_snd_port_connect(pjsua_var.snd_port, pjsua_var.aec_port); 987 status = pjmedia_snd_port_connect(pjsua_var.snd_port, 988 pjsua_var.media_cfg.ec_tail_len ? 989 pjsua_var.aec_port : conf_port ); 988 990 if (status != PJ_SUCCESS) { 989 991 pjsua_perror(THIS_FILE, "Unable to connect conference port to "
Note: See TracChangeset
for help on using the changeset viewer.