kopia lustrzana https://gitlab.com/eliggett/wfview
Fix TX Audio on Linux
rodzic
178bb9c6a7
commit
bbc81e0a88
|
@ -701,7 +701,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, audio
|
||||||
this->port = audioPort;
|
this->port = audioPort;
|
||||||
this->radioIP = ip;
|
this->radioIP = ip;
|
||||||
|
|
||||||
if (txSampleRate == 0) {
|
if (txSetup.samplerate == 0) {
|
||||||
enableTx = false;
|
enableTx = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -836,6 +836,7 @@ void udpAudio::sendTxAudio()
|
||||||
}
|
}
|
||||||
QByteArray audio;
|
QByteArray audio;
|
||||||
txaudio->getNextAudioChunk(audio);
|
txaudio->getNextAudioChunk(audio);
|
||||||
|
|
||||||
if (audio.length() > 0) {
|
if (audio.length() > 0) {
|
||||||
int counter = 1;
|
int counter = 1;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
|
@ -221,7 +221,7 @@ private:
|
||||||
QThread* txAudioThread = Q_NULLPTR;
|
QThread* txAudioThread = Q_NULLPTR;
|
||||||
|
|
||||||
QTimer* txAudioTimer=Q_NULLPTR;
|
QTimer* txAudioTimer=Q_NULLPTR;
|
||||||
bool enableTx = 1;
|
bool enableTx = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue