fix upstream filter check, audio interest set

This commit is contained in:
Stephen Birarda 2017-06-20 16:45:28 -07:00
parent 6da5a63152
commit d05996c13d
2 changed files with 2 additions and 3 deletions

View file

@ -391,7 +391,7 @@ void AudioMixer::start() {
// prepare the NodeList
nodeList->addSetOfNodeTypesToNodeInterestSet({
NodeType::Agent, NodeType::EntityScriptServer,
NodeType::UpstreamAudioMixer, NodeType::UpstreamAvatarMixer
NodeType::UpstreamAudioMixer, NodeType::DownstreamAudioMixer
});
nodeList->linkedDataCreateCallback = [&](Node* node) { getOrCreateClientData(node); };

View file

@ -264,8 +264,7 @@ bool LimitedNodeList::packetSourceAndHashMatchAndTrackBandwidth(const udt::Packe
NodeType_t sendingNodeType { NodeType::Unassigned };
eachNodeBreakable([&packet, &sendingNodeType](const SharedNodePointer& node){
if (node->getType() == NodeType::upstreamType(node->getType())
&& node->getPublicSocket() == packet.getSenderSockAddr()) {
if (NodeType::isUpstream(node->getType()) && node->getPublicSocket() == packet.getSenderSockAddr()) {
sendingNodeType = node->getType();
return false;
} else {