From 8eee3eb1e69ace9d26463b843a932edfd6a16c12 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 14 Oct 2011 06:41:51 +0000 Subject: Support for OpenCORE AMR-NB codec on Windows. This closes #1388 git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3817 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia-codec/config.h | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia-codec/config.h b/pjmedia/include/pjmedia-codec/config.h index 40fa3779..eeb58c2b 100644 --- a/pjmedia/include/pjmedia-codec/config.h +++ b/pjmedia/include/pjmedia-codec/config.h @@ -313,12 +313,38 @@ #endif /** - * OpenCORE AMR-NB codec is enabled by default. + * Enable OpenCORE AMR-NB codec. + * See https://trac.pjsip.org/repos/ticket/1388 for some info. + * + * Default: 0 */ #ifndef PJMEDIA_HAS_OPENCORE_AMRNB_CODEC # define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0 #endif +/** + * Link with libopencore-amrXX via pragma comment on Visual Studio. + * This option only makes sense if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC + * is enabled. + * + * Default: 1 + */ +#ifndef PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS +# define PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS 1 +#endif + +/** + * Link with libopencore-amrXX.a that has been produced with gcc. + * This option only makes sense if PJMEDIA_HAS_OPENCORE_AMRNB_CODEC + * and PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS are enabled. + * + * Default: 1 + */ +#ifndef PJMEDIA_OPENCORE_AMR_BUILT_WITH_GCC +# define PJMEDIA_OPENCORE_AMR_BUILT_WITH_GCC 1 +#endif + + /** * Default G.722.1 codec encoder and decoder level adjustment. * If the value is non-zero, then PCM input samples to the encoder will -- cgit v1.2.3