Changeset 2368 for pjproject/trunk
- Timestamp:
- Nov 19, 2008 2:48:10 PM (16 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r2294 r2368 426 426 * Suggested or default threshold to be set for fixed silence detection 427 427 * 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. 429 429 */ 430 430 #ifndef PJMEDIA_SILENCE_DET_THRESHOLD … … 438 438 * level. 439 439 * 440 * Default: 25 440 * Use 0x10000 (or greater) to disable this feature. 441 * 442 * Default: 0x10000 (disabled) 441 443 */ 442 444 #ifndef PJMEDIA_SILENCE_DET_MAX_THRESHOLD 443 # define PJMEDIA_SILENCE_DET_MAX_THRESHOLD 25445 # define PJMEDIA_SILENCE_DET_MAX_THRESHOLD 0x10000 444 446 #endif 445 447 -
pjproject/trunk/pjmedia/src/pjmedia/silencedet.c
r2367 r2368 26 26 #define THIS_FILE "silencedet.c" 27 27 28 #if 028 #if 1 29 29 # define TRACE_(x) PJ_LOG(3,x) 30 30 #else … … 224 224 225 225 if (level > sd->threshold || 226 (level >> 8)>= PJMEDIA_SILENCE_DET_MAX_THRESHOLD)226 level >= PJMEDIA_SILENCE_DET_MAX_THRESHOLD) 227 227 { 228 228 sd->silence_timer = 0;
Note: See TracChangeset
for help on using the changeset viewer.