From 7701aaa68a31b0138f7916f9d938a8a3fb6559e4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 14 Aug 2008 17:00:21 +0000 Subject: Added maximum threshold for silence detector, to aovid the silence detector setting the threshold too high thus cutting audio signal (e.g. when streaming long continuous signal) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2215 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 7d053f5d..46bf18b9 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -428,6 +428,18 @@ #endif +/** + * Maximum silence threshold in the silence detector. The silence detector + * will not cut the audio transmission if the audio level is above this + * level. + * + * Default: 25 + */ +#ifndef PJMEDIA_SILENCE_DET_MAX_THRESHOLD +# define PJMEDIA_SILENCE_DET_MAX_THRESHOLD 25 +#endif + + /** * Speex Accoustic Echo Cancellation (AEC). * By default is enabled. -- cgit v1.2.3