Update udphandler.cpp

merge-requests/2/head
Phil Taylor 2021-02-12 12:24:45 +00:00
rodzic 50731d45c7
commit 1b0160b18c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -632,7 +632,7 @@ void udpAudio::sendTxAudio(QByteArray audio)
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
int counter = 0;
if (((txCodec == 0x01 || txCodec == 0x02) && audio.length() != 960) || ((txCodec == 0x04 && audio.length() != 1920))) {
if (((txCodec == 0x02) && audio.length() != 960) || ((txCodec == 0x01 || txCodec == 0x04 && audio.length() != 1920))) {
qDebug() << "Unsupported TX audio length :" << audio.length() << " With codec: " << txCodec;
}
while (counter < audio.length())