Changeset 373 for pjproject/trunk/pjsip-apps/src/samples/sndinfo.c
- Timestamp:
- Apr 3, 2006 11:42:56 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/sndinfo.c
r371 r373 82 82 void *output, unsigned size) 83 83 { 84 static pj_time _vallast_cb;84 static pj_timestamp last_cb; 85 85 86 86 ++play_counter; 87 87 88 if (last_cb. sec == 0 && last_cb.msec== 0) {89 pj_get timeofday(&last_cb);88 if (last_cb.u64 == 0) { 89 pj_get_timestamp(&last_cb); 90 90 } else { 91 pj_time _val now, saved;91 pj_timestamp now; 92 92 int delay; 93 93 94 pj_gettimeofday(&now); 95 saved = now; 96 PJ_TIME_VAL_SUB(now, last_cb); 97 delay = PJ_TIME_VAL_MSEC(now); 98 94 pj_get_timestamp(&now); 95 96 delay = pj_elapsed_msec(&last_cb, &now); 99 97 if (delay < min_delay) 100 98 min_delay = delay; … … 102 100 max_delay = delay; 103 101 104 last_cb = saved;102 last_cb = now; 105 103 106 104 play_delays[play_counter-1] = delay;
Note: See TracChangeset
for help on using the changeset viewer.