- Timestamp:
- Mar 16, 2009 6:57:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c
r2394 r2515 36 36 pj_timestamp next_tick; 37 37 pj_timestamp timestamp; 38 unsigned samples_per_frame;38 unsigned timestamp_inc; 39 39 unsigned options; 40 40 pj_uint64_t max_jump; … … 82 82 clock->timestamp.u64 = 0; 83 83 clock->max_jump = MAX_JUMP_MSEC * clock->freq.u64 / 1000; 84 clock-> samples_per_frame = samples_per_frame;84 clock->timestamp_inc = samples_per_frame / channel_count; 85 85 clock->options = options; 86 86 clock->cb = cb; … … 201 201 202 202 /* Increment timestamp */ 203 clock->timestamp.u64 += clock-> samples_per_frame;203 clock->timestamp.u64 += clock->timestamp_inc; 204 204 205 205 /* Calculate next tick */ … … 256 256 257 257 /* Increment timestamp */ 258 clock->timestamp.u64 += clock-> samples_per_frame;258 clock->timestamp.u64 += clock->timestamp_inc; 259 259 260 260 /* Calculate next tick */
Note: See TracChangeset
for help on using the changeset viewer.