Changeset 320
- Timestamp:
- Mar 16, 2006 2:24:26 PM (19 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 1 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/log.h
r141 r320 229 229 # define pj_log_set_decor(decor) 230 230 231 /** 232 * Get current maximum log verbositylevel. 233 * 234 * @return Current log maximum level. 235 */ 236 # define pj_log_get_level() 0 237 238 /** 239 * Get current log decoration flag. 240 * 241 * @return Log decoration flag. 242 */ 243 # define pj_log_get_decor() 0 244 245 231 246 #endif /* #if PJ_LOG_MAX_LEVEL >= 1 */ 232 247 -
pjproject/trunk/pjmedia/build/Makefile
r296 r320 1 2 # Before we include local os-mak, set default sound framework to use 3 # PortAudio. 4 export SOUND_OBJS = $(PORTAUDIO_OBJS) 5 6 # Also set default codec files to be included 7 # If these codecs are to be excluded, then the appropriate PJMEDIA_HAS_XXX_CODEC macros 8 # MUST be set too in pj/config_site.h, to inform applications about the codec 9 # availability. 10 # 11 # E.g., to exclude Speex, we need to exclude SPEEX_OBJS from CODEC_OBJS, AND specify 12 # "#define PJMEDIA_HAS_SPEEX_CODEC 0" in pj/config_site.h. 13 # 14 export CODEC_OBJS = $(GSM_OBJS) $(SPEEX_OBJS) 15 16 1 17 include ../../build/common.mak 2 18 … … 8 24 export PJMEDIA_LIB:=../lib/libpjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 9 25 export PJMEDIA_CODEC_LIB:=../lib/libpjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(LIBEXT) 26 27 ############################################################################### 28 # Sound frameworks 29 # These are activated by setting SOUND_OBJS var, e.g.: 30 # export SOUND_OBJS = $(PORTAUDIO_OBJS), or 31 # export SOUND_OBJS = $(NULLSOUND_OBJS) 32 # 33 PA_DIR:=portaudio 34 PORTAUDIO_OBJS := pasound.o \ 35 $(PA_DIR)/pa_allocation.o \ 36 $(PA_DIR)/pa_converters.o \ 37 $(PA_DIR)/pa_cpuload.o \ 38 $(PA_DIR)/pa_dither.o \ 39 $(PA_DIR)/pa_front.o \ 40 $(PA_DIR)/pa_process.o \ 41 $(PA_DIR)/pa_skeleton.o \ 42 $(PA_DIR)/pa_stream.o \ 43 $(PA_DIR)/pa_trace.o 44 45 NULLSOUND_OBJS := nullsound.o 10 46 11 47 ############################################################################### … … 27 63 # Defines for building PJMEDIA library 28 64 # 29 PA_DIR:=portaudio30 65 export PJMEDIA_SRCDIR = ../src/pjmedia 31 66 export PJMEDIA_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 32 67 codec.o conference.o endpoint.o errno.o file_port.o \ 33 g711.o jbuf.o pasound.o port.o resample.o rtcp.o \68 g711.o jbuf.o null_port.o pasound.o port.o resample.o rtcp.o \ 34 69 rtp.o sdp.o sdp_cmp.o sdp_neg.o session.o silencedet.o \ 35 stream.o \ 36 $(PA_DIR)/pa_allocation.o \ 37 $(PA_DIR)/pa_converters.o \ 38 $(PA_DIR)/pa_cpuload.o \ 39 $(PA_DIR)/pa_dither.o \ 40 $(PA_DIR)/pa_front.o \ 41 $(PA_DIR)/pa_process.o \ 42 $(PA_DIR)/pa_skeleton.o \ 43 $(PA_DIR)/pa_stream.o \ 44 $(PA_DIR)/pa_trace.o 70 stream.o $(SOUND_OBJS) 45 71 46 72 export PJMEDIA_CFLAGS += $(_CFLAGS) … … 50 76 # Defines for building PJMEDIA-Codec library 51 77 # 52 GSM_OBJS := gsm/add.o gsm/code.o gsm/decode.o \ 78 GSM_OBJS := gsm.o \ 79 gsm/add.o gsm/code.o gsm/decode.o \ 53 80 gsm/gsm_create.o gsm/gsm_decode.o gsm/gsm_destroy.o \ 54 81 gsm/gsm_encode.o gsm/gsm_explode.o gsm/gsm_implode.o \ … … 58 85 GSM_CFLAGS := 59 86 60 SPEEX_OBJS := speex/bits.o speex/cb_search.o speex/exc_10_16_table.o \ 87 SPEEX_OBJS := speex_codec.o \ 88 speex/bits.o speex/cb_search.o speex/exc_10_16_table.o \ 61 89 speex/exc_10_32_table.o speex/exc_20_32_table.o speex/exc_5_256_table.o \ 62 90 speex/exc_5_64_table.o speex/exc_8_128_table.o speex/filters.o \ … … 72 100 export PJMEDIA_CODEC_SRCDIR = ../src/pjmedia-codec 73 101 export PJMEDIA_CODEC_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 74 gsm.o speex_codec.o pjmedia-codec-lib.o \ 75 $(GSM_OBJS) $(SPEEX_OBJS) 102 $(CODEC_OBJS) 76 103 export PJMEDIA_CODEC_CFLAGS += $(_CFLAGS) $(GSM_CFLAGS) $(SPEEX_CFLAGS) 77 104 … … 135 162 $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 136 163 @if test "$@" == "depend"; then \ 137 echo '$(PJMEDIA_TEST_EXE): $(PJMEDIA_LIB)' >> .pjmedia-test-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 164 echo '$(PJMEDIA_LIB): .pjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend' >> .pjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 165 echo '$(PJMEDIA_CODEC_LIB): .pjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend' >> .pjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 166 echo '$(PJMEDIA_TEST_EXE): $(PJMEDIA_LIB) $(PJMEDIA_CODEC_LIB)' >> .pjmedia-test-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 138 167 fi 139 168 -
pjproject/trunk/pjmedia/build/os-win32.mak
r198 r320 12 12 13 13 export OS_CFLAGS += -DPA_NO_ASIO -DPA_NO_DS 14 15 # Example: 16 # to activate Null sound, uncomment this line below. 17 #export SOUND_OBJS = $(NULLSOUND_OBJS) 18 19 # Example: 20 # to include only GSM and exclude Speex codec, uncomment the "export" line below. 21 # Note that you'll need to put "#define PJMEDIA_HAS_SPEEX_CODEC 0" in 22 # <pj/config_site.h> 23 #export CODEC_OBJS = $(GSM_OBJS) 24 -
pjproject/trunk/pjmedia/build/pjmedia.dsp
r318 r320 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 /F D /c44 # 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 /c 45 45 # SUBTRACT CPP /YX 46 46 # ADD BASE RSC /l 0x409 /d "NDEBUG" … … 126 126 127 127 SOURCE=..\src\pjmedia\nullsound.c 128 # PROP Exclude_From_Build 1129 128 # End Source File 130 129 # Begin Source File -
pjproject/trunk/pjmedia/build/pjmedia_codec.dsp
r279 r320 92 92 # Begin Source File 93 93 94 SOURCE="..\src\pjmedia-codec\pjmedia-codec-lib.c"95 # End Source File96 # Begin Source File97 98 94 SOURCE="..\src\pjmedia-codec\speex_codec.c" 99 95 # End Source File -
pjproject/trunk/pjmedia/include/pjmedia-codec.h
r278 r320 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 #ifndef __PJMEDIA_CODEC 1_H__20 #define __PJMEDIA_CODEC 1_H__19 #ifndef __PJMEDIA_CODEC_PJMEDIA_CODEC_H__ 20 #define __PJMEDIA_CODEC_PJMEDIA_CODEC_H__ 21 21 22 22 #include <pjmedia-codec/gsm.h> … … 24 24 25 25 26 PJ_BEGIN_DECL 26 #endif /* __PJMEDIA_CODEC_PJMEDIA_CODEC_H__ */ 27 27 28 29 /**30 * Initialize pjmedia-codec library, and register all codec factories31 * in this library. If application wants to controll the order of32 * the codec, it MUST NOT call this function, but instead register33 * each codec individually.34 *35 * @param endpt The pjmedia endpoint.36 *37 * @return PJ_SUCCESS on success.38 */39 PJ_DECL(pj_status_t) pjmedia_codec_init(pjmedia_endpt *endpt);40 41 42 /**43 * Deinitialize pjmedia-codec library, and unregister all codec factories44 * in this library.45 *46 * @return PJ_SUCCESS on success.47 */48 PJ_DECL(pj_status_t) pjmedia_codec_deinit(void);49 50 51 PJ_END_DECL52 53 54 #endif /* __PJMEDIA_CODEC_H__ */55 -
pjproject/trunk/pjmedia/include/pjmedia-codec/config.h
r278 r320 23 23 24 24 25 /* 26 * Include GSM codec?25 /** 26 * Unless specified otherwise, GSM codec is included by default. 27 27 */ 28 #ifndef PJMEDIA_ CODEC_HAS_GSM29 # define PJMEDIA_ CODEC_HAS_GSM128 #ifndef PJMEDIA_HAS_GSM_CODEC 29 # define PJMEDIA_HAS_GSM_CODEC 1 30 30 #endif 31 31 32 32 33 /* 34 * Include Speex codec?33 /** 34 * Unless specified otherwise, Speex codec is included by default. 35 35 */ 36 #ifndef PJMEDIA_ CODEC_HAS_SPEEX37 # define PJMEDIA_ CODEC_HAS_SPEEX136 #ifndef PJMEDIA_HAS_SPEEX_CODEC 37 # define PJMEDIA_HAS_SPEEX_CODEC 1 38 38 #endif 39 39 -
pjproject/trunk/pjmedia/include/pjmedia-codec/types.h
r176 r320 20 20 #define __PJMEDIA_CODEC_TYPES_H__ 21 21 22 #include <pjmedia /types.h>22 #include <pjmedia-codec/config.h> 23 23 24 24 -
pjproject/trunk/pjmedia/include/pjmedia/config.h
r188 r320 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 #ifndef __PJMED_CONFIG_H__ 20 #define __PJMED_CONFIG_H__ 19 #ifndef __PJMEDIA_CONFIG_H__ 20 #define __PJMEDIA_CONFIG_H__ 21 22 #include <pj/config.h> 23 24 /** 25 * Unless specified otherwise, PortAudio is enabled by default. 26 */ 27 #ifndef PJMEDIA_HAS_PORTAUDIO_SOUND 28 # define PJMEDIA_HAS_PORTAUDIO_SOUND 1 29 #endif 21 30 22 31 23 #endif /* __PJMED_CONFIG_H__ */ 32 /** 33 * Unless specified otherwise, Null sound is disabled. 34 * This option is mutually exclusive with PortAudio sound, or otherwise 35 * duplicate symbols error will occur. 36 */ 37 #ifndef PJMEDIA_HAS_NULL_SOUND 38 # define PJMEDIA_HAS_NULL_SOUND 0 39 #endif 40 41 42 /** 43 * Unless specified otherwise, G711 codec is included by default. 44 */ 45 #ifndef PJMEDIA_HAS_G711_CODEC 46 # define PJMEDIA_HAS_G711_CODEC 1 47 #endif 48 49 50 #endif /* __PJMEDIA_CONFIG_H__ */ -
pjproject/trunk/pjmedia/include/pjmedia/sound.h
r319 r320 25 25 * @brief Sound player and recorder device framework. 26 26 */ 27 27 #include <pjmedia/types.h> 28 28 #include <pj/pool.h> 29 29 -
pjproject/trunk/pjmedia/include/pjmedia/types.h
r205 r320 20 20 #define __PJMEDIA_TYPES_H__ 21 21 22 #include <pj /types.h>22 #include <pjmedia/config.h> 23 23 #include <pj/sock.h> 24 25 24 26 25 /** -
pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c
r281 r320 27 27 #include <pj/os.h> 28 28 #include "gsm/gsm.h" 29 30 /* 31 * Only build this file if PJMEDIA_HAS_GSM_CODEC != 0 32 */ 33 #if defined(PJMEDIA_HAS_GSM_CODEC) && PJMEDIA_HAS_GSM_CODEC != 0 34 29 35 30 36 /* Prototypes for GSM factory */ … … 474 480 return PJ_SUCCESS; 475 481 } 482 483 484 #endif /* PJMEDIA_HAS_GSM_CODEC */ 485 -
pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c
r303 r320 29 29 #include <pj/string.h> 30 30 #include <pj/os.h> 31 32 /* 33 * Only build this file if PJMEDIA_HAS_SPEEX_CODEC != 0 34 */ 35 #if defined(PJMEDIA_HAS_SPEEX_CODEC) && PJMEDIA_HAS_SPEEX_CODEC!=0 36 31 37 32 38 #define THIS_FILE "speex_codec.c" … … 778 784 return PJ_SUCCESS; 779 785 } 786 787 788 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ -
pjproject/trunk/pjmedia/src/pjmedia/g711.c
r278 r320 27 27 #include <pj/string.h> 28 28 #include <pj/assert.h> 29 30 #if defined(PJMEDIA_HAS_G711_CODEC) && PJMEDIA_HAS_G711_CODEC!=0 29 31 30 32 … … 473 475 474 476 477 #endif /* PJMEDIA_HAS_G711_CODEC */ 478 479 475 480 /* 476 481 * This source code is a product of Sun Microsystems, Inc. and is provided … … 765 770 766 771 772 -
pjproject/trunk/pjmedia/src/pjmedia/nullsound.c
r121 r320 19 19 #include <pjmedia/sound.h> 20 20 #include <pj/assert.h> 21 22 #if defined(PJMEDIA_HAS_NULL_SOUND) && PJMEDIA_HAS_NULL_SOUND!=0 21 23 22 24 static pj_snd_dev_info null_info = … … 46 48 } 47 49 48 PJ_DEF(pj_snd_stream*) pj_snd_open_recorder( int index, 49 const pj_snd_stream_info *param, 50 pj_snd_rec_cb rec_cb, 51 void *user_data) 50 PJ_DEF(pj_status_t) pj_snd_open_recorder( int index, 51 unsigned clock_rate, 52 unsigned channel_count, 53 unsigned samples_per_frame, 54 unsigned bits_per_sample, 55 pj_snd_rec_cb rec_cb, 56 void *user_data, 57 pj_snd_stream **p_snd_strm) 52 58 { 53 59 PJ_UNUSED_ARG(index); 54 PJ_UNUSED_ARG(param); 60 PJ_UNUSED_ARG(clock_rate); 61 PJ_UNUSED_ARG(channel_count); 62 PJ_UNUSED_ARG(samples_per_frame); 63 PJ_UNUSED_ARG(bits_per_sample); 55 64 PJ_UNUSED_ARG(rec_cb); 56 65 PJ_UNUSED_ARG(user_data); 57 return (void*)1; 66 67 *p_snd_strm = (void*)1; 68 69 return PJ_SUCCESS; 58 70 } 59 71 60 PJ_DEF(pj_snd_stream*) pj_snd_open_player( int index, 61 const pj_snd_stream_info *param, 62 pj_snd_play_cb play_cb, 63 void *user_data) 72 PJ_DEF(pj_status_t) pj_snd_open_player( int index, 73 unsigned clock_rate, 74 unsigned channel_count, 75 unsigned samples_per_frame, 76 unsigned bits_per_sample, 77 pj_snd_play_cb play_cb, 78 void *user_data, 79 pj_snd_stream **p_snd_strm ) 64 80 { 65 81 PJ_UNUSED_ARG(index); 66 PJ_UNUSED_ARG(param); 82 PJ_UNUSED_ARG(clock_rate); 83 PJ_UNUSED_ARG(channel_count); 84 PJ_UNUSED_ARG(samples_per_frame); 85 PJ_UNUSED_ARG(bits_per_sample); 67 86 PJ_UNUSED_ARG(play_cb); 68 87 PJ_UNUSED_ARG(user_data); 69 return (void*)1; 88 89 *p_snd_strm = (void*)1; 90 91 return PJ_SUCCESS; 70 92 } 71 93 … … 92 114 return PJ_SUCCESS; 93 115 } 116 117 118 #endif /* PJMEDIA_HAS_NULL_SOUND */ -
pjproject/trunk/pjmedia/src/pjmedia/pasound.c
r319 r320 23 23 #include <pj/string.h> 24 24 #include <portaudio.h> 25 26 #if defined(PJMEDIA_HAS_PORTAUDIO_SOUND) && PJMEDIA_HAS_PORTAUDIO_SOUND!=0 25 27 26 28 #define THIS_FILE "pasound.c" … … 435 437 } 436 438 439 440 #endif /* PJMEDIA_HAS_PORTAUDIO_SOUND */ -
pjproject/trunk/pjsip-apps/build/Makefile
r254 r320 45 45 46 46 47 ############################################################################### 48 # Defines for building PJSIP-PERF 49 # 50 export PJSIPPERF_SRCDIR = ../src/pjsip-perf 51 export PJSIPPERF_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 52 handler_call.o handler_options.o main.o 53 export PJSIPPERF_CFLAGS += $(_CFLAGS) 54 export PJSIPPERF_LDFLAGS += $(_LDFLAGS) 55 export PJSIPPERF_EXE:=../bin/pjsip-perf-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE) 56 57 58 47 59 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT 48 60 ############################################################################### … … 50 62 # 51 63 # 52 TARGETS := pjsua 64 TARGETS := pjsua pjsip-perf 53 65 54 66 .PHONY: $(TARGETS) … … 67 79 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $(PJSUA_EXE) 68 80 81 pjsip-perf: 82 $(MAKE) -f $(RULES_MAK) APP=PJSIPPERF app=pjsip-perf $(PJSUA_EXE) 83 84 69 85 .PHONY: ../lib/pjsua.ko 70 86 ../lib/pjsua.ko: … … 73 89 clean depend realclean: 74 90 $(MAKE) -f $(RULES_MAK) APP=PJSUA app=pjsua $@ 91 $(MAKE) -f $(RULES_MAK) APP=PJSIPPERF app=pjsip-perf $@ 75 92 @if test "$@" == "depend"; then \ 76 echo '$(PJSUA_EXE): $(PJSIP_LIB) $(PJSIP_UA_LIB) $(PJSIP_SIMPLE) $(PJSUA_LIB_LIB) $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJMEDIA_LIB) $(PJMEDIA_CODEC_LIB)' >> .pjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 93 echo '$(PJSUA_EXE): $(PJSIP_LIB) $(PJSIP_UA_LIB) $(PJSIP_SIMPLE) $(PJSUA_LIB_LIB) $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJMEDIA_LIB) $(PJMEDIA_CODEC_LIB) Makefile' >> .pjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 94 echo '$(PJSIPPERF_EXE): $(PJSIP_LIB) $(PJSIP_UA_LIB) $(PJSIP_SIMPLE) $(PJSUA_LIB_LIB) $(PJLIB_LIB) $(PJLIB_UTIL_LIB) $(PJMEDIA_LIB) $(PJMEDIA_CODEC_LIB)' >> .pjsip-perf-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).depend; \ 77 95 fi 78 96 -
pjproject/trunk/pjsip-apps/build/pjsip_apps.dsw
r254 r320 79 79 End Project Dependency 80 80 Begin Project Dependency 81 Project_Dep_Name pjmedia82 End Project Dependency83 Begin Project Dependency84 Project_Dep_Name pjmedia_codec85 End Project Dependency86 Begin Project Dependency87 81 Project_Dep_Name pjsip_core 88 82 End Project Dependency … … 95 89 Begin Project Dependency 96 90 Project_Dep_Name pjsua_lib 91 End Project Dependency 92 Begin Project Dependency 93 Project_Dep_Name pjmedia 97 94 End Project Dependency 98 95 }}} -
pjproject/trunk/pjsip-apps/build/pjsip_perf.dsp
r317 r320 51 51 LINK32=link.exe 52 52 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 53 # ADD LINK32 ole32.lib user32.lib netapi32.lib mswsock.lib ws2_32.lib kernel32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\pjsip-perf-i386-win32-vc6 d.exe"53 # ADD LINK32 ole32.lib user32.lib netapi32.lib mswsock.lib ws2_32.lib kernel32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\bin\pjsip-perf-i386-win32-vc6.exe" 54 54 55 55 !ELSEIF "$(CFG)" == "pjsip_perf - Win32 Debug" -
pjproject/trunk/pjsip-apps/build/pjsua.dsp
r317 r320 52 52 LINK32=link.exe 53 53 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 54 # ADD LINK32 ole32.lib user32.lib dsound.lib dxguid.lib netapi32.lib mswsock.lib ws2_32.lib kernel32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /map /machine:I386 /out:"../bin/pjsua_vc6.exe" /fixed:no54 # ADD LINK32 ole32.lib user32.lib dsound.lib dxguid.lib netapi32.lib mswsock.lib ws2_32.lib kernel32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /map:"..\bin\pjsua_vc6.map" /machine:I386 /out:"../bin/pjsua_vc6.exe" /fixed:no 55 55 # SUBTRACT LINK32 /pdb:none /debug 56 56 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r318 r320 618 618 if (pjsua.codec_cnt == 0) { 619 619 620 #if PJMEDIA_HAS_SPEEX_CODEC 620 621 unsigned option = PJMEDIA_SPEEX_NO_WB | PJMEDIA_SPEEX_NO_UWB; 621 622 … … 637 638 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_speex_deinit; 638 639 pjsua.codec_cnt++; 639 640 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 641 642 #if PJMEDIA_HAS_GSM_CODEC 640 643 /* Register GSM */ 641 644 status = pjmedia_codec_gsm_init(pjsua.med_endpt); … … 649 652 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_gsm_deinit; 650 653 pjsua.codec_cnt++; 651 654 #endif /* PJMEDIA_HAS_GSM_CODEC */ 655 656 #if PJMEDIA_HAS_G711_CODEC 652 657 /* Register PCMA and PCMU */ 653 658 status = pjmedia_codec_g711_init(pjsua.med_endpt); … … 664 669 pjsua.codec_deinit[pjsua.codec_cnt] = &pjmedia_codec_g711_deinit; 665 670 pjsua.codec_cnt++; 671 #endif /* PJMEDIA_HAS_G711_CODEC */ 666 672 667 673 } else { … … 674 680 for (i=0; i<pjsua.codec_cnt; ++i) { 675 681 682 if (0) { 683 /* Dummy */ 684 } 685 #if PJMEDIA_HAS_SPEEX_CODEC 676 686 /* Is it speex? */ 677 if (!pj_stricmp2(&pjsua.codec_arg[i], "speex")) {687 else if (!pj_stricmp2(&pjsua.codec_arg[i], "speex")) { 678 688 679 689 unsigned option = PJMEDIA_SPEEX_NO_WB | PJMEDIA_SPEEX_NO_UWB; … … 695 705 pjsua.codec_deinit[i] = &pjmedia_codec_speex_deinit; 696 706 } 707 #endif /* PJMEDIA_HAS_SPEEX_CODEC */ 708 709 #if PJMEDIA_HAS_GSM_CODEC 697 710 /* Is it gsm? */ 698 711 else if (!pj_stricmp2(&pjsua.codec_arg[i], "gsm")) { … … 708 721 709 722 } 723 #endif /* PJMEDIA_HAS_GSM_CODEC */ 724 725 #if PJMEDIA_HAS_G711_CODEC 710 726 /* Is it pcma/pcmu? */ 711 727 else if (!pj_stricmp2(&pjsua.codec_arg[i], "pcmu") || … … 723 739 724 740 } 741 #endif /* PJMEDIA_HAS_G711_CODEC */ 742 725 743 /* Don't know about this codec... */ 726 744 else { … … 1059 1077 1060 1078 /* Destroy file port */ 1061 pjmedia_port_destroy(pjsua.file_port); 1079 if (pjsua.file_port) 1080 pjmedia_port_destroy(pjsua.file_port); 1062 1081 1063 1082 /* Destroy null port. */ 1064 pjmedia_port_destroy(pjsua.null_port); 1083 if (pjsua.null_port) 1084 pjmedia_port_destroy(pjsua.null_port); 1065 1085 1066 1086
Note: See TracChangeset
for help on using the changeset viewer.