mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53:03 +02:00
pass correct size for audio read
This commit is contained in:
parent
3cba3d0dcd
commit
273e92f1fd
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ int InboundAudioStream::parseData(NLPacket& packet) {
|
|||
if (packet.getType() == PacketType::SilentAudioFrame) {
|
||||
writeDroppableSilentSamples(networkSamples);
|
||||
} else {
|
||||
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload(), packet.pos()),
|
||||
int audioBytes = parseAudioData(packet.getType(), QByteArray::fromRawData(packet.getPayload(),
|
||||
packet.bytesLeftToRead()),
|
||||
networkSamples);
|
||||
packet.seek(packet.pos() + audioBytes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue