Searched defs:next_tick (Results 1 - 2 of 2) sorted by relevance

/vbox/src/VBox/RDP/client-1.8.3/
H A Drdpsnd_libao.c157 int next_tick; local
174 next_tick = rdpsnd_queue_next_tick();
184 if (packet->tick > next_tick)
185 next_tick += 65536;
187 if ((out->p == out->end) || duration > next_tick - packet->tick + 500)
194 if (abs((next_tick - packet->tick) - duration) > 20)
196 DEBUG(("duration: %d, calc: %d, ", duration, next_tick - packet->tick));
198 (packet->tick + duration) % 65536, next_tick % 65536));
H A Drdpsnd_alsa.c355 int next_tick; local
372 next_tick = rdpsnd_queue_next_tick();
387 if (packet->tick > next_tick)
388 next_tick += 65536;
390 if ((out->p == out->end) || duration > next_tick - packet->tick + 500)
398 if (abs((next_tick - packet->tick) - duration) > 20)
400 DEBUG(("duration: %d, calc: %d, ", duration, next_tick - packet->tick));
402 (packet->tick + duration) % 65536, next_tick % 65536));

Completed in 43 milliseconds