mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 23:44:09 +02:00
fix replicant handling slot, add node strings for replicants
This commit is contained in:
parent
c7b3b79a23
commit
d5b466e3ae
3 changed files with 6 additions and 2 deletions
|
@ -100,10 +100,11 @@ AudioMixer::AudioMixer(ReceivedMessage& message) :
|
|||
PacketType::ReplicatedSilentAudioFrame,
|
||||
PacketType::ReplicatedNegotiateAudioFormat
|
||||
},
|
||||
this, "queueMirroredAudioPacket"
|
||||
this, "queueReplicatedAudioPacket"
|
||||
);
|
||||
|
||||
connect(nodeList.data(), &NodeList::nodeKilled, this, &AudioMixer::handleNodeKilled);
|
||||
|
||||
}
|
||||
|
||||
void AudioMixer::queueAudioPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer node) {
|
||||
|
|
|
@ -744,7 +744,8 @@ void LimitedNodeList::removeSilentNodes() {
|
|||
SharedNodePointer node = it->second;
|
||||
node->getMutex().lock();
|
||||
|
||||
if ((usecTimestampNow() - node->getLastHeardMicrostamp()) > (NODE_SILENCE_THRESHOLD_MSECS * USECS_PER_MSEC)) {
|
||||
if (node->getType() != NodeType::ReplicantAudioMixer && node->getType() != NodeType::ReplicantAvatarMixer
|
||||
&& (usecTimestampNow() - node->getLastHeardMicrostamp()) > (NODE_SILENCE_THRESHOLD_MSECS * USECS_PER_MSEC)) {
|
||||
// call the NodeHash erase to get rid of this node
|
||||
it = _nodeHash.unsafe_erase(it);
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@ void NodeType::init() {
|
|||
TypeNameHash.insert(NodeType::MessagesMixer, "Messages Mixer");
|
||||
TypeNameHash.insert(NodeType::AssetServer, "Asset Server");
|
||||
TypeNameHash.insert(NodeType::EntityScriptServer, "Entity Script Server");
|
||||
TypeNameHash.insert(NodeType::ReplicantAudioMixer, "Replicant Audio Mixer");
|
||||
TypeNameHash.insert(NodeType::ReplicantAvatarMixer, "Replicant Avatar Mixer");
|
||||
TypeNameHash.insert(NodeType::Unassigned, "Unassigned");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue