mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
Merge pull request #2490 from birarda/master
properly increment framesSinceCutoffEvent in mixers
This commit is contained in:
commit
a35eca1d4b
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()) {
|
||||
if (node->getType() == NodeType::Agent && node->getActiveSocket() && node->getLinkedData()
|
||||
&& ((AudioMixerClientData*) node->getLinkedData())->getAvatarAudioRingBuffer()) {
|
||||
|
|
|
@ -306,6 +306,10 @@ void AvatarMixer::run() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!hasRatioChanged) {
|
||||
++framesSinceCutoffEvent;
|
||||
}
|
||||
|
||||
broadcastAvatarData();
|
||||
|
||||
QCoreApplication::processEvents();
|
||||
|
|
Loading…
Reference in a new issue