Changeset 2368 for pjproject/trunk


Ignore:
Timestamp:
Nov 19, 2008 2:48:10 PM (16 years ago)
Author:
nanang
Message:

Ticket #676: Updated default value of maximum silence theshold setting to MAXUINT16+1 (feature is disabled).

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r2294 r2368  
    426426 * Suggested or default threshold to be set for fixed silence detection 
    427427 * or as starting threshold for adaptive silence detection. The threshold 
    428  * has the range from zero to 255. 
     428 * has the range from zero to 0xFFFF. 
    429429 */ 
    430430#ifndef PJMEDIA_SILENCE_DET_THRESHOLD 
     
    438438 * level. 
    439439 * 
    440  * Default: 25 
     440 * Use 0x10000 (or greater) to disable this feature. 
     441 * 
     442 * Default: 0x10000 (disabled) 
    441443 */ 
    442444#ifndef PJMEDIA_SILENCE_DET_MAX_THRESHOLD 
    443 #   define PJMEDIA_SILENCE_DET_MAX_THRESHOLD    25 
     445#   define PJMEDIA_SILENCE_DET_MAX_THRESHOLD    0x10000 
    444446#endif 
    445447 
  • pjproject/trunk/pjmedia/src/pjmedia/silencedet.c

    r2367 r2368  
    2626#define THIS_FILE   "silencedet.c" 
    2727 
    28 #if 0 
     28#if 1 
    2929#   define TRACE_(x)    PJ_LOG(3,x) 
    3030#else 
     
    224224 
    225225    if (level > sd->threshold ||  
    226         (level >> 8) >= PJMEDIA_SILENCE_DET_MAX_THRESHOLD) 
     226        level >= PJMEDIA_SILENCE_DET_MAX_THRESHOLD) 
    227227    { 
    228228        sd->silence_timer = 0; 
Note: See TracChangeset for help on using the changeset viewer.