mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
Merge remote-tracking branch 'origin'
This commit is contained in:
commit
959af6b0d5
1 changed files with 5 additions and 1 deletions
|
@ -58,13 +58,17 @@ void *sendBuffer(void *args)
|
||||||
{
|
{
|
||||||
int sentBytes;
|
int sentBytes;
|
||||||
int nextFrame = 0;
|
int nextFrame = 0;
|
||||||
timeval startTime;
|
timeval startTime, lastSend;
|
||||||
|
|
||||||
gettimeofday(&startTime, NULL);
|
gettimeofday(&startTime, NULL);
|
||||||
|
gettimeofday(&lastSend, NULL);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
sentBytes = 0;
|
sentBytes = 0;
|
||||||
|
|
||||||
|
printf("Last send was %f us ago", usecTimestampNow() - usecTimestamp(&lastSend));
|
||||||
|
gettimeofday(&lastSend, NULL);
|
||||||
|
|
||||||
for (int i = 0; i < agentList.getAgents().size(); i++) {
|
for (int i = 0; i < agentList.getAgents().size(); i++) {
|
||||||
AudioRingBuffer *agentBuffer = (AudioRingBuffer *) agentList.getAgents()[i].getLinkedData();
|
AudioRingBuffer *agentBuffer = (AudioRingBuffer *) agentList.getAgents()[i].getLinkedData();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue