add some debug for the next audio mixer coma

This commit is contained in:
Stephen Birarda 2016-01-20 18:22:37 -08:00
parent 7919d7bc17
commit 5e451360f7

View file

@ -827,7 +827,12 @@ void AudioMixer::broadcastMixes() {
}
usecToSleep = (++nextFrame * AudioConstants::NETWORK_FRAME_USECS) - timer.nsecsElapsed() / 1000; // ns to us
if (quint64(usecToSleep) > USECS_PER_SECOND) {
qDebug() << "DANGER: amount to sleep is" << usecToSleep;
qDebug() << "NextFrame is" << nextFrame << "and timer nsecs elapsed is" << timer.nsecsElapsed();
}
if (usecToSleep > 0) {
usleep(usecToSleep);
}