mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 16:26:17 +02:00
don't construct a packet of exact size for replicated audio packets
This commit is contained in:
parent
fe668b1bb1
commit
a4aa9689a6
2 changed files with 1 additions and 2 deletions
|
@ -103,7 +103,6 @@ AudioMixer::AudioMixer(ReceivedMessage& message) :
|
|||
);
|
||||
|
||||
connect(nodeList.data(), &NodeList::nodeKilled, this, &AudioMixer::handleNodeKilled);
|
||||
|
||||
}
|
||||
|
||||
void AudioMixer::queueAudioPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer node) {
|
||||
|
|
|
@ -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
|
||||
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
|
||||
packet->write(message.getSourceID().toRfc4122());
|
||||
|
|
Loading…
Reference in a new issue