mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:58:37 +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)
|
// parse the info after the seq number and before the audio data (the stream properties)
|
||||||
int propertyBytes = parseStreamProperties(packet.getType(),
|
int propertyBytes = parseStreamProperties(packet.getType(),
|
||||||
QByteArray::fromRawData(packet.getPayload(), packet.bytesLeftToRead()),
|
QByteArray::fromRawData(packet.getPayload() + packet.pos(), packet.bytesLeftToRead()),
|
||||||
networkSamples);
|
networkSamples);
|
||||||
packet.seek(packet.pos() + propertyBytes);
|
packet.seek(packet.pos() + propertyBytes);
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ int InboundAudioStream::parseData(NLPacket& packet) {
|
||||||
if (packet.getType() == PacketType::SilentAudioFrame) {
|
if (packet.getType() == PacketType::SilentAudioFrame) {
|
||||||
writeDroppableSilentSamples(networkSamples);
|
writeDroppableSilentSamples(networkSamples);
|
||||||
} else {
|
} else {
|
||||||
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload(),
|
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload() + packet.pos(),
|
||||||
packet.bytesLeftToRead()),
|
packet.bytesLeftToRead()),
|
||||||
networkSamples);
|
networkSamples);
|
||||||
packet.seek(packet.pos() + audioBytes);
|
packet.seek(packet.pos() + audioBytes);
|
||||||
|
|
Loading…
Reference in a new issue