mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:23:39 +02: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 prePropertyPosition = message.getPosition();
|
||||||
int propertyBytes = parseStreamProperties(message.getType(), message.readWithoutCopy(message.getBytesLeftToRead()), networkFrames);
|
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.
|
// handle this packet based on its arrival status.
|
||||||
switch (arrivalInfo._status) {
|
switch (arrivalInfo._status) {
|
||||||
|
|
Loading…
Reference in a new issue