mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 19:24:32 +02:00
fix position of read in InboundAudioStream
This commit is contained in:
parent
273e92f1fd
commit
9318f464a4
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ int InboundAudioStream::parseData(NLPacket& packet) {
|
|||
|
||||
// parse the info after the seq number and before the audio data (the stream properties)
|
||||
int propertyBytes = parseStreamProperties(packet.getType(),
|
||||
QByteArray::fromRawData(packet.getPayload(), packet.bytesLeftToRead()),
|
||||
QByteArray::fromRawData(packet.getPayload() + packet.pos(), packet.bytesLeftToRead()),
|
||||
networkSamples);
|
||||
packet.seek(packet.pos() + propertyBytes);
|
||||
|
||||
|
@ -133,7 +133,7 @@ int InboundAudioStream::parseData(NLPacket& packet) {
|
|||
if (packet.getType() == PacketType::SilentAudioFrame) {
|
||||
writeDroppableSilentSamples(networkSamples);
|
||||
} else {
|
||||
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload(),
|
||||
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload() + packet.pos(),
|
||||
packet.bytesLeftToRead()),
|
||||
networkSamples);
|
||||
packet.seek(packet.pos() + audioBytes);
|
||||
|
|
Loading…
Reference in a new issue