kopia lustrzana https://gitlab.com/eliggett/wfview
Keep audio mutex until all processing is done
rodzic
6e44480d6b
commit
db702123f9
|
@ -1459,8 +1459,6 @@ void udpServer::sendRxAudio()
|
|||
{
|
||||
audio.clear();
|
||||
rxaudio->getNextAudioChunk(audio);
|
||||
// Now we have the next audio chunk, we can release the mutex.
|
||||
audioMutex.unlock();
|
||||
int len = 0;
|
||||
while (len < audio.length()) {
|
||||
audioPacket partial;
|
||||
|
@ -1468,6 +1466,8 @@ void udpServer::sendRxAudio()
|
|||
receiveAudioData(partial);
|
||||
len = len + partial.data.length();
|
||||
}
|
||||
// Now we have the next audio chunk, we can release the mutex.
|
||||
audioMutex.unlock();
|
||||
}
|
||||
else {
|
||||
qInfo(logUdpServer()) << "Unable to lock mutex for rxaudio";
|
||||
|
|
Ładowanie…
Reference in New Issue