Changeset 205 for pjproject/trunk/pjmedia/src/pjmedia/vad.c
- Timestamp:
- Feb 21, 2006 12:11:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vad.c
r203 r205 57 57 58 58 59 unsigned char linear2ulaw(int pcm_val); 59 unsigned char linear2ulaw(int pcm_val); 60 60 61 61 62 PJ_DEF(pj_status_t) pjmedia_vad_create( pj_pool_t *pool, … … 88 89 vad->frame_size = frame_size; 89 90 vad->mode = VAD_MODE_ADAPTIVE; 90 vad->min_signal_cnt = 3;91 vad->min_silence_cnt = 20;92 vad->recalc_cnt = 30;91 vad->min_signal_cnt = 10; 92 vad->min_silence_cnt = 64; 93 vad->recalc_cnt = 250; 93 94 vad->cur_threshold = 20; 94 95 … … 228 229 */ 229 230 vad->cur_threshold += (vad->weakest_signal - vad->cur_threshold)/4; 230 PJ_LOG( 5,(THIS_FILE, "Vad cur_threshold increased to %d",231 PJ_LOG(6,(THIS_FILE, "Vad cur_threshold increased to %d", 231 232 vad->cur_threshold)); 232 233 } … … 236 237 */ 237 238 vad->cur_threshold = (vad->cur_threshold+vad->loudest_silence)/2+1; 238 PJ_LOG( 5,(THIS_FILE, "Vad cur_threshold decreased to %d",239 PJ_LOG(6,(THIS_FILE, "Vad cur_threshold decreased to %d", 239 240 vad->cur_threshold)); 240 241 } … … 251 252 252 253 if (updated) { 253 PJ_LOG( 5,(THIS_FILE,254 PJ_LOG(6,(THIS_FILE, 254 255 "Vad cur_threshold updated to %d", 255 256 vad->cur_threshold));
Note: See TracChangeset
for help on using the changeset viewer.