mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
remove conditional seek from InboundAudioStream
This commit is contained in:
parent
91cef9bb7c
commit
c132e29b06
1 changed files with 1 additions and 10 deletions
|
@ -128,16 +128,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
|||
int prePropertyPosition = message.getPosition();
|
||||
int propertyBytes = parseStreamProperties(message.getType(), message.readWithoutCopy(message.getBytesLeftToRead()), networkFrames);
|
||||
|
||||
if (message.getType() == PacketType::ReplicatedMicrophoneAudioNoEcho
|
||||
|| message.getType() == PacketType::ReplicatedMicrophoneAudioWithEcho
|
||||
|| message.getType() == PacketType::ReplicatedInjectAudio
|
||||
|| message.getType() == PacketType::ReplicatedSilentAudioFrame) {
|
||||
message.seek(NUM_BYTES_RFC4122_UUID);
|
||||
message.readString();
|
||||
message.read(sizeof(quint16) + prePropertyPosition + propertyBytes);
|
||||
} else {
|
||||
message.seek(prePropertyPosition + propertyBytes);
|
||||
}
|
||||
message.seek(prePropertyPosition + propertyBytes);
|
||||
|
||||
// handle this packet based on its arrival status.
|
||||
switch (arrivalInfo._status) {
|
||||
|
|
Loading…
Reference in a new issue