summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2009-05-06 18:59:31 +0000
committerNanang Izzuddin <nanang@teluu.com>2009-05-06 18:59:31 +0000
commiteb2a9500da9ff360d64eb05a91c7bfb749de7662 (patch)
tree99b29961d1d415bd80812100e9096e8f73265153 /pjlib
parent9193944dbe454603dbe45c505106a9e483df2203 (diff)
Ticket #818:
- Updated config_site_sample.h to enable resampling with small filter on WM platforms. - Updated quality setting in WM sample apps (PocketPJ & pjsua_wince) to use default value. - Updated VS projects of G722.1, Speex, libresample: turning on optimization for debug mode on WM platforms. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2678 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/config_site_sample.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/pjlib/include/pj/config_site_sample.h b/pjlib/include/pj/config_site_sample.h
index efcd419a..e64d97fc 100644
--- a/pjlib/include/pj/config_site_sample.h
+++ b/pjlib/include/pj/config_site_sample.h
@@ -49,8 +49,17 @@
/* For CPU reason, disable speex AEC and use the echo suppressor. */
#define PJMEDIA_HAS_SPEEX_AEC 0
- /* Shouldn't use resampling for performance reason too. */
- #define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_NONE
+ /* Previously, resampling is disabled due to performance reason and
+ * this condition prevented some 'light' wideband codecs (e.g: G722.1)
+ * to work along with narrowband codecs. Lately, some tests showed
+ * that 16kHz <-> 8kHz resampling using libresample small filter was
+ * affordable on ARM9 260 MHz, so here we decided to enable resampling.
+ * Note that it is important to make sure that libresample is created
+ * using small filter. For example PJSUA_DEFAULT_CODEC_QUALITY must
+ * be set to 3 or 4 so pjsua-lib will apply small filter resampling.
+ */
+ //#define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_NONE
+ #define PJMEDIA_RESAMPLE_IMP PJMEDIA_RESAMPLE_LIBRESAMPLE
/* Use the lighter WSOLA implementation */
#define PJMEDIA_WSOLA_IMP PJMEDIA_WSOLA_IMP_WSOLA_LITE
@@ -70,8 +79,10 @@
* PJSUA settings
*/
- /* Default codec (Speex) quality */
- #define PJSUA_DEFAULT_CODEC_QUALITY 5
+ /* Default codec quality, previously was set to 5, however it is now
+ * set to 4 to make sure pjsua instantiates resampler with small filter.
+ */
+ #define PJSUA_DEFAULT_CODEC_QUALITY 4
/* Set maximum number of objects to minimum to reduce memory usage */
#define PJSUA_MAX_ACC 4