kopia lustrzana https://gitlab.com/eliggett/wfview
Add a bit more debugging for TX audio
rodzic
c288a7f45b
commit
9648211739
|
@ -189,6 +189,8 @@ void audioHandler::reinit()
|
|||
if (running) {
|
||||
this->start();
|
||||
}
|
||||
flush();
|
||||
|
||||
}
|
||||
|
||||
void audioHandler::start()
|
||||
|
|
|
@ -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));
|
||||
|
|
Ładowanie…
Reference in New Issue