Fix for uLaw encoding

This commit is contained in:
Phil Taylor 2022-05-03 10:37:41 +01:00
parent 2c0df5b8f4
commit 4fbd369bcd

View file

@ -74,6 +74,8 @@ bool audioHandler::init(audioSetup setupIn)
if (setup.codec == 0x01 || setup.codec == 0x20) {
setup.ulaw = true;
setup.format.setSampleSize(16);
setup.format.setSampleType(QAudioFormat::SignedInt);
}
if (setup.codec == 0x08 || setup.codec == 0x10 || setup.codec == 0x20 || setup.codec == 0x80) {