mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #6878 from birarda/audio-mixer-coma
add some debug for the next audio mixer coma
This commit is contained in:
commit
9d97335a0e
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue