mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:43:08 +02:00
CR feedback
This commit is contained in:
parent
ec0382daf7
commit
920cd90afa
2 changed files with 3 additions and 3 deletions
|
@ -424,7 +424,7 @@ void Agent::setIsListeningToAudioStream(bool isListeningToAudioStream) {
|
||||||
},
|
},
|
||||||
[&](const SharedNodePointer& node) {
|
[&](const SharedNodePointer& node) {
|
||||||
qDebug() << "sending KillAvatar message to Audio Mixers";
|
qDebug() << "sending KillAvatar message to Audio Mixers";
|
||||||
auto packet = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID);
|
auto packet = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID, true);
|
||||||
packet->write(getSessionUUID().toRfc4122());
|
packet->write(getSessionUUID().toRfc4122());
|
||||||
nodeList->sendPacket(std::move(packet), *node);
|
nodeList->sendPacket(std::move(packet), *node);
|
||||||
});
|
});
|
||||||
|
@ -475,7 +475,7 @@ void Agent::setIsAvatar(bool isAvatar) {
|
||||||
},
|
},
|
||||||
[&](const SharedNodePointer& node) {
|
[&](const SharedNodePointer& node) {
|
||||||
qDebug() << "sending KillAvatar message to Avatar and Audio Mixers";
|
qDebug() << "sending KillAvatar message to Avatar and Audio Mixers";
|
||||||
auto packet = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID);
|
auto packet = NLPacket::create(PacketType::KillAvatar, NUM_BYTES_RFC4122_UUID, true);
|
||||||
packet->write(getSessionUUID().toRfc4122());
|
packet->write(getSessionUUID().toRfc4122());
|
||||||
nodeList->sendPacket(std::move(packet), *node);
|
nodeList->sendPacket(std::move(packet), *node);
|
||||||
});
|
});
|
||||||
|
|
|
@ -607,7 +607,7 @@ void AudioMixer::handleKillAvatarPacket(QSharedPointer<ReceivedMessage> packet,
|
||||||
nodeList->eachNode([sendingNode](const SharedNodePointer& node){
|
nodeList->eachNode([sendingNode](const SharedNodePointer& node){
|
||||||
auto listenerClientData = dynamic_cast<AudioMixerClientData*>(node->getLinkedData());
|
auto listenerClientData = dynamic_cast<AudioMixerClientData*>(node->getLinkedData());
|
||||||
if (listenerClientData) {
|
if (listenerClientData) {
|
||||||
listenerClientData->removeHRTFForStream(sendingNode->getUUID(), QUuid());
|
listenerClientData->removeHRTFForStream(sendingNode->getUUID());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue