diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-10-14 06:41:51 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-10-14 06:41:51 +0000 |
commit | 8eee3eb1e69ace9d26463b843a932edfd6a16c12 (patch) | |
tree | 86073bc5f29e3f5db7aec5556e9d6ef4e07eed14 /pjmedia/include | |
parent | de1679edb534fafe595aa0dbcfd41086c4d51277 (diff) |
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
Diffstat (limited to 'pjmedia/include')
-rw-r--r-- | pjmedia/include/pjmedia-codec/config.h | 28 |
1 files changed, 27 insertions, 1 deletions
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,13 +313,39 @@ #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 * be shifted right by this value, and similarly PCM output samples from |