Changeset 642
- Timestamp:
- Aug 2, 2006 6:22:22 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/build/pjmedia.dsp
r631 r642 42 42 # PROP Target_Dir "" 43 43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c 44 # ADD CPP /nologo /MD /W4 /GX /O2 /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" / D "NDEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /c44 # ADD CPP /nologo /MD /W4 /GX /O2 /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" /D "NDEBUG" /D "PA_NO_ASIO" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /c 45 45 # SUBTRACT CPP /YX 46 46 # ADD BASE RSC /l 0x409 /d "NDEBUG" … … 66 66 # PROP Target_Dir "" 67 67 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c 68 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" / D "_DEBUG" /D "PA_NO_ASIO" /D "PA_NO_WMME" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /GZ /c68 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../src/pjmedia/portaudio" /I "../src/pjmedia-codec" /D "_DEBUG" /D "PA_NO_ASIO" /D "PA_NO_WMME" /D "WIN32" /D "_MBCS" /D "_LIB" /D PJ_WIN32=1 /D PJ_M_I386=1 /FR /FD /GZ /c 69 69 # SUBTRACT CPP /YX 70 70 # ADD BASE RSC /l 0x409 /d "_DEBUG" … … 88 88 # Begin Source File 89 89 90 SOURCE=..\src\pjmedia\aec_port.c 91 # End Source File 92 # Begin Source File 93 90 94 SOURCE=..\src\pjmedia\alaw_ulaw.c 91 95 # End Source File … … 226 230 227 231 # PROP Default_Filter "h;hpp;hxx;hm;inl" 232 # Begin Source File 233 234 SOURCE=..\include\pjmedia\aec_port.h 235 # End Source File 228 236 # Begin Source File 229 237 -
pjproject/trunk/pjmedia/include/pjmedia.h
r558 r642 26 26 27 27 #include <pjmedia/types.h> 28 #include <pjmedia/aec_port.h> 28 29 #include <pjmedia/clock.h> 29 30 #include <pjmedia/codec.h> -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r637 r642 2129 2129 unsigned rx_drop_pct; 2130 2130 2131 /** 2132 * Echo canceller tail length, in miliseconds. 2133 * 2134 * Default: 256 2135 */ 2136 unsigned ec_tail_len; 2131 2137 }; 2132 2138 … … 2147 2153 cfg->quality = 6; 2148 2154 cfg->ilbc_mode = 20; 2155 cfg->ec_tail_len = 256; 2149 2156 } 2150 2157 -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r632 r642 205 205 int cap_dev; /**< Capture device ID. */ 206 206 int play_dev; /**< Playback device ID. */ 207 pjmedia_port *aec_port; /**< AEC port to conf bridge. */ 207 208 pj_bool_t no_snd; /**< No sound (app will manage it) */ 208 209 pjmedia_snd_port *snd_port; /**< Sound port. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r637 r642 969 969 pj_assert(conf_port != NULL); 970 970 971 /* Connect to the conference port */ 972 status = pjmedia_snd_port_connect(pjsua_var.snd_port, conf_port); 971 /* Create AEC if it's not created */ 972 if (pjsua_var.aec_port == NULL) { 973 status = pjmedia_aec_port_create(pjsua_var.pool, conf_port, 974 conf_port->info.clock_rate * 975 pjsua_var.media_cfg.ec_tail_len / 976 1000, 977 &pjsua_var.aec_port); 978 if (status != PJ_SUCCESS) { 979 pjsua_perror(THIS_FILE, "Unable to create AEC port", status); 980 pjmedia_snd_port_destroy(pjsua_var.snd_port); 981 pjsua_var.snd_port = NULL; 982 return status; 983 } 984 } 985 986 /* Connect to the AEC port */ 987 status = pjmedia_snd_port_connect(pjsua_var.snd_port, pjsua_var.aec_port); 973 988 if (status != PJ_SUCCESS) { 974 989 pjsua_perror(THIS_FILE, "Unable to connect conference port to "
Note: See TracChangeset
for help on using the changeset viewer.