Ignore:
Timestamp:
Feb 21, 2006 12:11:18 AM (18 years ago)
Author:
bennylp
Message:

Initial conference implementation

File:
1 edited

Legend:

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

    r203 r205  
    5757 
    5858 
    59 unsigned char linear2ulaw(int           pcm_val); 
     59unsigned char linear2ulaw(int pcm_val); 
     60 
    6061 
    6162PJ_DEF(pj_status_t) pjmedia_vad_create( pj_pool_t *pool, 
     
    8889    vad->frame_size = frame_size; 
    8990    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; 
    9394    vad->cur_threshold = 20; 
    9495 
     
    228229             */ 
    229230            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", 
    231232                      vad->cur_threshold)); 
    232233        } 
     
    236237             */ 
    237238            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", 
    239240                      vad->cur_threshold)); 
    240241        } 
     
    251252 
    252253            if (updated) { 
    253                 PJ_LOG(5,(THIS_FILE, 
     254                PJ_LOG(6,(THIS_FILE, 
    254255                          "Vad cur_threshold updated to %d", 
    255256                          vad->cur_threshold)); 
Note: See TracChangeset for help on using the changeset viewer.