summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-08-06 14:15:47 +0000
committerBenny Prijono <bennylp@teluu.com>2006-08-06 14:15:47 +0000
commit5f8a7295e220373097ab73658d853dda2643b84e (patch)
treef635550128747c283768557ecc14346bd532ec04 /pjmedia/include
parentec75ca7ab04302c9145ad6bf3023dd7359832f60 (diff)
Change the silence suppressor to use the adaptive silence detector.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@655 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/conference.h10
-rw-r--r--pjmedia/include/pjmedia/silencedet.h19
2 files changed, 26 insertions, 3 deletions
diff --git a/pjmedia/include/pjmedia/conference.h b/pjmedia/include/pjmedia/conference.h
index 8b1f2e35..936d2294 100644
--- a/pjmedia/include/pjmedia/conference.h
+++ b/pjmedia/include/pjmedia/conference.h
@@ -293,6 +293,16 @@ PJ_DECL(pj_status_t) pjmedia_conf_disconnect_port( pjmedia_conf *conf,
/**
+ * Get total number of ports connections currently set up in the bridge.
+ *
+ * @param conf The conference bridge.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+PJ_DECL(unsigned) pjmedia_conf_get_connect_count(pjmedia_conf *conf);
+
+
+/**
* Remove the specified port from the conference bridge.
*
* @param conf The conference bridge.
diff --git a/pjmedia/include/pjmedia/silencedet.h b/pjmedia/include/pjmedia/silencedet.h
index a4958cc5..15cb8460 100644
--- a/pjmedia/include/pjmedia/silencedet.h
+++ b/pjmedia/include/pjmedia/silencedet.h
@@ -73,6 +73,19 @@ PJ_DECL(pj_status_t) pjmedia_silence_det_create( pj_pool_t *pool,
/**
+ * Set silence detector name to identify the particular silence detector
+ * instance in the log.
+ *
+ * @param sd The silence detector.
+ * @param name Name.
+ *
+ * @return PJ_SUCCESS on success.
+ */
+PJ_DECL(pj_status_t) pjmedia_silence_det_set_name(pjmedia_silence_det *sd,
+ const char *name);
+
+
+/**
* Set the sd to operate in fixed threshold mode. With fixed threshold mode,
* the threshold will not be changed adaptively.
*
@@ -109,7 +122,7 @@ PJ_DECL(pj_status_t) pjmedia_silence_det_set_adaptive(pjmedia_silence_det *sd,
* @param min_signal Minimum duration of signal (in msec) before
* signal is reported. If -1 is specified, then
* the default value will be used. The default is
- * one frame.
+ * equal to one frame.
* @param recalc_time The interval to recalculate signal and silence
* proportion and to readjust the silence threshold
* when adaptive silence detection is set. If -1
@@ -144,7 +157,7 @@ PJ_DECL(pj_status_t) pjmedia_silence_det_disable( pjmedia_silence_det *sd );
* @param p_level Optional pointer to receive average signal level
* of the input samples.
*
- * @return PJ_SUCCESS on success.
+ * @return Non zero if signal is silence.
*/
PJ_DECL(pj_bool_t) pjmedia_silence_det_detect( pjmedia_silence_det *sd,
const pj_int16_t samples[],
@@ -173,7 +186,7 @@ PJ_DECL(pj_int32_t) pjmedia_calc_avg_signal( const pj_int16_t samples[],
* @param sd The silence detector instance.
* @param level Signal level.
*
- * @return PJ_SUCCESS on success.
+ * @return Non zero if signal is silence.
*/
PJ_DECL(pj_bool_t) pjmedia_silence_det_apply( pjmedia_silence_det *sd,
pj_uint32_t level);