diff options
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 25 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 1 |
2 files changed, 24 insertions, 2 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 5e549a34..6fd640fe 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2152,7 +2152,7 @@ PJ_INLINE(void) pjsua_media_config_default(pjsua_media_config *cfg) cfg->thread_cnt = 1; cfg->quality = 6; cfg->ilbc_mode = 20; - cfg->ec_tail_len = 0; + cfg->ec_tail_len = 500; } @@ -2497,6 +2497,29 @@ PJ_DECL(pj_status_t) pjsua_set_null_snd_dev(void); PJ_DECL(pjmedia_port*) pjsua_set_no_snd_dev(void); +/** + * Configure the AEC settings of the sound port. + * + * @param tail_ms The tail length, in miliseconds. Set to zero to + * disable AEC. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pjsua_set_aec(unsigned tail_ms); + + +/** + * Get current AEC tail length. + * + * @param p_tail_ms Pointer to receive the tail length, in miliseconds. + * If AEC is disabled, the value will be zero. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pjsua_get_aec(unsigned *p_tail_ms); + + + /***************************************************************************** * Codecs. */ diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index 95c5c40e..c862219f 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -204,7 +204,6 @@ struct pjsua_data pjmedia_conf *mconf; /**< Conference bridge. */ int cap_dev; /**< Capture device ID. */ int play_dev; /**< Playback device ID. */ - pjmedia_port *aec_port; /**< AEC port to conf bridge. */ pj_bool_t no_snd; /**< No sound (app will manage it) */ pjmedia_snd_port *snd_port; /**< Sound port. */ pjmedia_master_port *null_snd; /**< Master port for null sound. */ |