diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-24 21:52:34 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-24 21:52:34 +0000 |
commit | 455284ebc1ac276f5d7a93c636ca18530628d14c (patch) | |
tree | ad206a4c7e2d17613515a462a5f9cdd82349d7e0 /main | |
parent | 926eb0940b2b98ee0c0d4db1b77ddbfc5dc93d4a (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@158857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-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 e5db83cd5..6963bda2c 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 { |