Ignore:
Timestamp:
Dec 30, 2010 4:31:16 PM (13 years ago)
Author:
ming
Message:

Re #1184: Adding pjmedia_clock_src for the purpose of audio and video synchronization and also to provide synchronization mechanism between two medias in general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/include/pjmedia/config.h

    r3392 r3402  
    967967#endif 
    968968 
     969/** 
     970 * Specify the maximum time difference (in ms) for synchronization between 
     971 * two medias. If the synchronization media source is ahead of time 
     972 * greater than this duration, it is considered to make a very large jump 
     973 * and the synchronization will be reset. 
     974 * 
     975 * Default: 20000 
     976 */ 
     977#ifndef PJMEDIA_CLOCK_SYNC_MAX_SYNC_MSEC 
     978#   define PJMEDIA_CLOCK_SYNC_MAX_SYNC_MSEC         20000 
     979#endif 
     980 
     981/** 
     982 * Specify the maximum duration (in ms) for resynchronization. When a media 
     983 * is late to another media it is supposed to be synchronized to, it is 
     984 * guaranteed to be synchronized again after this duration. While if the 
     985 * media is ahead/early by t ms, it is guaranteed to be synchronized after 
     986 * t + this duration. This timing only applies if there is no additional 
     987 * resynchronization required during the specified duration. 
     988 * 
     989 * Default: 2000 
     990 */ 
     991#ifndef PJMEDIA_CLOCK_SYNC_MAX_RESYNC_DURATION 
     992#   define PJMEDIA_CLOCK_SYNC_MAX_RESYNC_DURATION 2000 
     993#endif 
     994 
    969995 
    970996/** 
Note: See TracChangeset for help on using the changeset viewer.