don't construct a packet of exact size for replicated audio packets

This commit is contained in:
Stephen Birarda 2017-06-12 12:51:18 -07:00
parent fe668b1bb1
commit a4aa9689a6
2 changed files with 1 additions and 2 deletions

View file

@ -103,7 +103,6 @@ AudioMixer::AudioMixer(ReceivedMessage& message) :
); );
connect(nodeList.data(), &NodeList::nodeKilled, this, &AudioMixer::handleNodeKilled); connect(nodeList.data(), &NodeList::nodeKilled, this, &AudioMixer::handleNodeKilled);
} }
void AudioMixer::queueAudioPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer node) { void AudioMixer::queueAudioPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer node) {

View file

@ -127,7 +127,7 @@ void AudioMixerClientData::replicatePacket(ReceivedMessage& message) {
} }
// construct an NLPacket to send to the replicant that has the contents of the received packet // construct an NLPacket to send to the replicant that has the contents of the received packet
auto packet = NLPacket::create(mirroredType, message.getSize() + NUM_BYTES_RFC4122_UUID); auto packet = NLPacket::create(mirroredType);
// since this packet will be non-sourced, we add the replicated node's ID here // since this packet will be non-sourced, we add the replicated node's ID here
packet->write(message.getSourceID().toRfc4122()); packet->write(message.getSourceID().toRfc4122());