Ignore:
Timestamp:
Mar 11, 2009 11:28:44 AM (15 years ago)
Author:
nanang
Message:
  • updated delay statistic calculations to use pj_math_stat, also added

min, avg, dev of latency into the test result

  • fixed drift report
  • updated test result calculations to use division with rounding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/aps-direct/pjsip-apps/src/samples/auddemo.c

    r2468 r2503  
    193193            PJ_LOG(1,(THIS_FILE, "Error: no frames captured!")); 
    194194        } else { 
    195             PJ_LOG(3,(THIS_FILE, "  %-20s: max interval=%u, burst=%u", 
     195            PJ_LOG(3,(THIS_FILE, "  %-20s: interval (min/max/avg/dev)=%u/%u/%u/%u, burst=%u", 
    196196                      "Recording result", 
     197                      result.rec.min_interval, 
    197198                      result.rec.max_interval, 
     199                      result.rec.avg_interval, 
     200                      result.rec.dev_interval, 
    198201                      result.rec.max_burst)); 
    199202        } 
     
    204207            PJ_LOG(1,(THIS_FILE, "Error: no playback!")); 
    205208        } else { 
    206             PJ_LOG(3,(THIS_FILE, "  %-20s: max interval=%u, burst=%u", 
     209            PJ_LOG(3,(THIS_FILE, "  %-20s: interval (min/max/avg/dev)=%u/%u/%u/%u, burst=%u", 
    207210                      "Playback result", 
     211                      result.play.min_interval, 
    208212                      result.play.max_interval, 
     213                      result.play.avg_interval, 
     214                      result.play.dev_interval, 
    209215                      result.play.max_burst)); 
    210216        } 
     
    212218 
    213219    if (dir==PJMEDIA_DIR_CAPTURE_PLAYBACK) { 
    214         if (result.rec_drift_per_sec) { 
     220        if (result.rec_drift_per_sec == 0) { 
    215221            PJ_LOG(3,(THIS_FILE, " No clock drift detected")); 
    216222        } else { 
Note: See TracChangeset for help on using the changeset viewer.