print out difference between buffer callbacks on mixer

This commit is contained in:
Stephen Birarda 2013-03-11 17:12:24 -07:00
parent 74452b7cc5
commit 5f393734e0

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();