Ignore:
Timestamp:
Aug 14, 2008 5:00:21 PM (16 years ago)
Author:
bennylp
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/silencedet.c

    r2039 r2215  
    268268            } 
    269269 
     270            if (new_threshold > PJMEDIA_SILENCE_DET_MAX_THRESHOLD) 
     271                new_threshold = PJMEDIA_SILENCE_DET_MAX_THRESHOLD; 
     272 
    270273            if (updated && sd->cur_threshold != new_threshold) { 
    271274                PJ_LOG(5,(sd->objname,  
Note: See TracChangeset for help on using the changeset viewer.