238 |
duration = (out->size * (1000000 / (g_samplewidth * g_snd_rate))); |
duration = (out->size * (1000000 / (g_samplewidth * g_snd_rate))); |
239 |
elapsed = (tv.tv_sec - startedat_s) * 1000000 + (tv.tv_usec - startedat_us); |
elapsed = (tv.tv_sec - startedat_s) * 1000000 + (tv.tv_usec - startedat_us); |
240 |
|
|
241 |
if (elapsed >= (duration * 7) / 10) |
if (elapsed >= (duration * 85) / 100) |
242 |
{ |
{ |
243 |
rdpsnd_send_completion(packet->tick, packet->index); |
rdpsnd_send_completion(packet->tick, packet->index); |
244 |
free(out->data); |
free(out->data); |