diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-24 21:53:28 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-24 21:53:28 +0000 |
commit | 291f0ca2acb98088737f83fcb04d35c573a00908 (patch) | |
tree | 86b38891d1e7b97e7ef3049a24dda4717066798b /main/dsp.c | |
parent | eaa3d240a3fd56aa52af28dc7ab9b994e502e774 (diff) |
Merged revisions 158857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r158857 | tilghman | 2008-11-24 15:52:34 -0600 (Mon, 24 Nov 2008) | 3 lines
Add a bit of documentation (thanks, I-MOD) on what the silence threshold
constant actually does and what values are valid for it.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@158861 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/dsp.c')
-rw-r--r-- | main/dsp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/dsp.c b/main/dsp.c index f3adcf0be..168c1fd5a 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -105,6 +105,13 @@ static struct progress { { GSAMP_SIZE_UK, { 400 } }, /*!< UK */ }; +/*!\brief This value is the minimum threshold, calculated by averaging all + * of the samples within a frame, for which a frame is determined to either + * be silence (below the threshold) or noise (above the threshold). Please + * note that while the default threshold is an even exponent of 2, there is + * no requirement that it be so. The threshold will accept any value between + * 0 and 32767. + */ #define DEFAULT_THRESHOLD 512 enum busy_detect { |