Ignore:
Timestamp:
May 30, 2008 11:30:24 AM (11 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/include/pjmedia/delaybuf.h

    r1833 r1972  
    6969 * @param clock_rate        Number of samples processed per second. 
    7070 * @param samples_per_frame Number of samples per frame. 
    71  * @param max_frames        Maximum number of delay to be accommodated, 
    72  *                          in number of frames. 
    73  * @param delay             The delay to be applied, in number of frames. 
    74  *                          If the value is -1 or 0, the delay buffer will 
    75  *                          learn about the delay automatically. If 
    76  *                          the value is greater than zero, then this 
    77  *                          value will be used and no learning will be 
    78  *                          performed. 
     71 * @param channel_count     Number of channel per frame. 
     72 * @param max_delay         Maximum number of delay to be accommodated, 
     73 *                          in ms, if this value is negative or less than  
     74 *                          one frame time, default maximum delay used is 
     75 *                          400 ms. 
    7976 * @param option            Option flags, must be zero for now. 
    8077 * @param p_b               Pointer to receive the delay buffer instance. 
     
    8885                                              unsigned clock_rate, 
    8986                                              unsigned samples_per_frame, 
    90                                               unsigned max_frames, 
    91                                               int delay, 
     87                                              unsigned channel_count, 
     88                                              unsigned max_delay, 
    9289                                              unsigned options, 
    9390                                              pjmedia_delay_buf **p_b); 
     
    128125 
    129126/** 
    130  * Reinitiate learning state. This will clear the buffer's content. 
    131  * 
    132  * @param b                 The delay buffer. 
    133  * 
    134  * @return                  PJ_SUCCESS on success or the appropriate error. 
    135  */ 
    136 PJ_DECL(pj_status_t) pjmedia_delay_buf_learn(pjmedia_delay_buf *b); 
    137  
    138 /** 
    139127 * Reset delay buffer. This will clear the buffer's content. But keep 
    140128 * the learning result. 
Note: See TracChangeset for help on using the changeset viewer.