Update audiohandler.cpp

merge-requests/6/head
Phil Taylor 2021-08-14 16:16:11 +01:00
rodzic 9ae9e56399
commit eb5dc0d095
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -712,8 +712,7 @@ void audioHandler::getNextAudioChunk(QByteArray& ret)
outPacket[f] = (unsigned char)compressedByte;
}
else {
int compressedByte = ((sample >> 8) ^ 0x80) & 0xff;
outPacket[f] = (unsigned char)compressedByte;
outPacket[f] = (unsigned char)(((sample + 32768) >> 8) & 0xff);
}
}
packet.data.clear();