Parent: 24039249854ee027b565753a82ec962e2f3035f8
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-13 17:02:36
Tree: f3a322b1e65d84d4586e36948546440692cf0085
client: fix ISO send data rate We are sending data to controller at wrong average rate not equal to 1 packet / SDU interval, if Transport_Latency is not an integer multiple of SDU_Interval. The calculation currently may also give zero, so no data gets sent. We are sending data in bursts of num ~= Transport_Latency/SDU_Interval packets, in hopes that possibly larger timer interval makes things more efficient. Fix the data rate by sending num packets every num*SDU_Interval, so that the average data rate is correct. Also fix use of itimerspect.it_value with TFD_TIMER_ABSTIME. The value set previously is going to always be in the past in CLOCK_MONOTONIC so just set it to 1.
Diffstat
| M | client/player.c | | | 19 | ++++++++++++++- - - - - |
1 files changed, 14 insertions(+), 5 deletions(-)