mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +02:00
increment framesSinceCutoffEvent in mixers to enable recovery
This commit is contained in:
parent
b5ea3df82a
commit
1fe01f3e61
2 changed files with 8 additions and 0 deletions
|
@ -455,6 +455,10 @@ void AudioMixer::run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!hasRatioChanged) {
|
||||||
|
++framesSinceCutoffEvent;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (const SharedNodePointer& node, nodeList->getNodeHash()) {
|
foreach (const SharedNodePointer& node, nodeList->getNodeHash()) {
|
||||||
if (node->getType() == NodeType::Agent && node->getActiveSocket() && node->getLinkedData()
|
if (node->getType() == NodeType::Agent && node->getActiveSocket() && node->getLinkedData()
|
||||||
&& ((AudioMixerClientData*) node->getLinkedData())->getAvatarAudioRingBuffer()) {
|
&& ((AudioMixerClientData*) node->getLinkedData())->getAvatarAudioRingBuffer()) {
|
||||||
|
|
|
@ -306,6 +306,10 @@ void AvatarMixer::run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!hasRatioChanged) {
|
||||||
|
++framesSinceCutoffEvent;
|
||||||
|
}
|
||||||
|
|
||||||
broadcastAvatarData();
|
broadcastAvatarData();
|
||||||
|
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
|
|
Loading…
Reference in a new issue