Add a bit more debugging for TX audio

merge-requests/2/head
Phil Taylor 2021-02-12 09:20:15 +00:00
rodzic c288a7f45b
commit 9648211739
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -189,6 +189,8 @@ void audioHandler::reinit()
if (running) {
this->start();
}
flush();
}
void audioHandler::start()

Wyświetl plik

@ -633,6 +633,9 @@ 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))) {
qDebug() << "Unsupported TX audio length :" << audio.length() << " With codec: " << txCodec;
}
while (counter < audio.length())
{
QByteArray tx = QByteArray::fromRawData((const char*)p, sizeof(p));