Changeset 1464

Show
Ignore:
Timestamp:
11/22/08 13:34:38 (12 years ago)
Author:
ppalmers
Message:

be more tolerant for jitter on the timestamps. experience tells that this only happens at startup.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libutil/TimestampedBuffer.cpp

    r1271 r1464  
    959959#ifdef DEBUG 
    960960    // check whether the update is within the allowed bounds 
    961 /*    const float max_deviation = (50.0/100.0); // maximal relative difference considered normal 
    962     ffado_timestamp_t one_update_step = nbframes * getRate(); 
    963     ffado_timestamp_t max_abs_diff = one_update_step * (1.0 + max_deviation);*/ 
    964     ffado_timestamp_t max_abs_diff = 200; 
     961    ffado_timestamp_t max_abs_diff = 3072/2; // half a cycle is what we consider 'normal' 
    965962 
    966963    debugOutputExtreme(DEBUG_LEVEL_VERY_VERBOSE,