1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Prevent audio encoding CPU exhaustion

No need to encode too much audio if we're not going to take th time to send it. opus_encode is really slow
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-07-01 23:55:08 +02:00
parent a9b76253af
commit b0816696fa

View File

@ -1275,7 +1275,7 @@ void Core::sendCallAudio(int callId, ToxAv* toxav)
calls[callId].sendAudioTimer.start();
return;
}
calls[callId].sendAudioTimer.start(0);
calls[callId].sendAudioTimer.start(1);
}
else
calls[callId].sendAudioTimer.start();