Changeset 3067


Ignore:
Timestamp:
Jan 21, 2010 8:39:14 AM (15 years ago)
Author:
bennylp
Message:

Related to #969: make maximum PLC generated frames configurable (PJMEDIA_MAX_PLC_DURATION_MSEC)

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r2977 r3067  
    214214#ifndef PJMEDIA_WSOLA_PLC_NO_FADING 
    215215#   define PJMEDIA_WSOLA_PLC_NO_FADING      0 
     216#endif 
     217 
     218 
     219/** 
     220 * Limit the number of calls by stream to the PLC to generate synthetic 
     221 * frames to this duration. If packets are still lost after this maximum 
     222 * duration, silence will be generated by the stream instead. Since the 
     223 * PLC normally should have its own limit on the maximum duration of 
     224 * synthetic frames to be generated (for PJMEDIA's PLC, the limit is 
     225 * PJMEDIA_WSOLA_MAX_EXPAND_MSEC), we can set this value to a large number 
     226 * to give additional flexibility should the PLC wants to do something 
     227 * clever with the lost frames. 
     228 * 
     229 * Default: 240 ms 
     230 */ 
     231#ifndef PJMEDIA_MAX_PLC_DURATION_MSEC 
     232#   define PJMEDIA_MAX_PLC_DURATION_MSEC    240 
    216233#endif 
    217234 
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r3065 r3067  
    4949 * just as precaution 
    5050 */ 
    51 #define MAX_PLC_MSEC                    240 
     51#define MAX_PLC_MSEC                    PJMEDIA_MAX_PLC_DURATION_MSEC 
    5252 
    5353/** 
Note: See TracChangeset for help on using the changeset viewer.