Lines Matching defs:timing
82 int filled; /**< Number of entries occupied in "timing" and "counts"*/
84 spx_int32_t timing[MAX_TIMINGS]; /**< Sorted list of all timings ("latest" packets first) */
94 /* Add the timing of a new packet to the TimingBuffer */
95 static void tb_add(struct TimingBuffer *tb, spx_int16_t timing)
99 if (tb->filled >= MAX_TIMINGS && timing >= tb->timing[tb->filled-1])
105 /* Find where the timing info goes in the sorted list */
108 while (pos<tb->filled && timing >= tb->timing[pos])
121 SPEEX_MOVE(&tb->timing[pos+1], &tb->timing[pos], move_size);
125 tb->timing[pos] = timing;
217 if (pos[j] < tb[j].filled && tb[j].timing[pos[j]] < latest)
220 latest = tb[j].timing[pos[j]];
245 /* For the next timing we will consider, there will be one more late packet to count */
332 /** Take the following timing into consideration for future calculations */
333 static void update_timings(JitterBuffer *jitter, spx_int32_t timing)
335 if (timing < -32767)
336 timing = -32767;
337 if (timing > 32767)
338 timing = 32767;
350 tb_add(jitter->timeBuffers[0], timing);
360 jitter->timeBuffers[i]->timing[j] += amount;