Browse Source

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
pull/59/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
b0816696fa
  1. 2
      core.cpp

2
core.cpp

@ -1275,7 +1275,7 @@ void Core::sendCallAudio(int callId, ToxAv* toxav) @@ -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();

Loading…
Cancel
Save