kopia lustrzana https://gitlab.com/eliggett/wfview
Update audiohandler.cpp
rodzic
9ae9e56399
commit
eb5dc0d095
|
@ -712,8 +712,7 @@ void audioHandler::getNextAudioChunk(QByteArray& ret)
|
||||||
outPacket[f] = (unsigned char)compressedByte;
|
outPacket[f] = (unsigned char)compressedByte;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int compressedByte = ((sample >> 8) ^ 0x80) & 0xff;
|
outPacket[f] = (unsigned char)(((sample + 32768) >> 8) & 0xff);
|
||||||
outPacket[f] = (unsigned char)compressedByte;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
packet.data.clear();
|
packet.data.clear();
|
||||||
|
|
Ładowanie…
Reference in New Issue