Ignore:
Timestamp:
May 30, 2008 11:30:24 AM (16 years ago)
Author:
nanang
Message:

Updated delaybuf to learn burst level in realtime instead of only in the beginning, this can optimize the latency and increase adaptivity

File:
1 edited

Legend:

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

    r1929 r1972  
    419419    struct conf_port *conf_port; 
    420420    pj_status_t status; 
     421    unsigned ptime; 
    421422 
    422423    /* Create port */ 
     
    426427 
    427428    /* Passive port has delay buf. */ 
     429    ptime = conf->samples_per_frame * 1000 / conf->clock_rate /  
     430            conf->channel_count; 
    428431    status = pjmedia_delay_buf_create(pool, name->ptr,  
    429432                                      conf->clock_rate, 
    430433                                      conf->samples_per_frame, 
    431                                       RX_BUF_COUNT, /* max */ 
    432                                       -1, /* delay */ 
     434                                      conf->channel_count, 
     435                                      RX_BUF_COUNT * ptime, /* max delay */ 
    433436                                      0, /* options */ 
    434437                                      &conf_port->delay_buf); 
Note: See TracChangeset for help on using the changeset viewer.