mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 22:30:42 +02:00
seek past source UUID in mirrored packets
This commit is contained in:
parent
e629881665
commit
b5c26b596e
2 changed files with 9 additions and 1 deletions
|
@ -303,6 +303,13 @@ int AudioMixerClientData::parseData(ReceivedMessage& message) {
|
|||
// seek to the beginning of the packet so that the next reader is in the right spot
|
||||
message.seek(0);
|
||||
|
||||
if (packetType == PacketType::MirroredMicrophoneAudioWithEcho
|
||||
|| packetType == PacketType::MirroredMicrophoneAudioNoEcho
|
||||
|| packetType == PacketType::MirroredSilentAudioFrame
|
||||
|| packetType == PacketType::MirroredInjectAudio) {
|
||||
message.seek(NUM_BYTES_RFC4122_UUID);
|
||||
}
|
||||
|
||||
// check the overflow count before we parse data
|
||||
auto overflowBefore = matchingStream->getOverflowCount();
|
||||
auto parseResult = matchingStream->parseData(message);
|
||||
|
|
|
@ -41,7 +41,8 @@ const QSet<PacketType> NON_SOURCED_PACKETS = QSet<PacketType>()
|
|||
<< PacketType::ICEServerHeartbeatDenied << PacketType::AssignmentClientStatus << PacketType::StopNode
|
||||
<< PacketType::DomainServerRemovedNode << PacketType::UsernameFromIDReply << PacketType::OctreeFileReplacement
|
||||
<< PacketType::MirroredMicrophoneAudioNoEcho << PacketType::MirroredMicrophoneAudioWithEcho
|
||||
<< PacketType::MirroredInjectAudio << PacketType::MirroredSilentAudioFrame;
|
||||
<< PacketType::MirroredInjectAudio << PacketType::MirroredSilentAudioFrame
|
||||
<< PacketType::MirroredNegotiateAudioFormat;
|
||||
|
||||
PacketVersion versionForPacketType(PacketType packetType) {
|
||||
switch (packetType) {
|
||||
|
|
Loading…
Reference in a new issue