Merge remote-tracking branch 'origin'

This commit is contained in:
Philip Rosedale 2013-03-11 17:14:57 -07:00
commit 959af6b0d5

View file

@ -58,13 +58,17 @@ void *sendBuffer(void *args)
{
int sentBytes;
int nextFrame = 0;
timeval startTime;
timeval startTime, lastSend;
gettimeofday(&startTime, NULL);
gettimeofday(&lastSend, NULL);
while (true) {
sentBytes = 0;
printf("Last send was %f us ago", usecTimestampNow() - usecTimestamp(&lastSend));
gettimeofday(&lastSend, NULL);
for (int i = 0; i < agentList.getAgents().size(); i++) {
AudioRingBuffer *agentBuffer = (AudioRingBuffer *) agentList.getAgents()[i].getLinkedData();