Fix for an issue where voice rejected packets#5081
Conversation
CVoiceDataPacket::Read rejected packets|
I will make these configurable by the server instead |
Doesn't this seem a bit excessive? |
If you consider this approach reliable, I can implement it in my PR |
|
It's not really excessive to give server owners control. We do something similar already with |
Go ahead |
Should |
The interval and threshold, yes. i.e |
Lpsd
left a comment
There was a problem hiding this comment.
I have also added max_voice_buffer_size as the 2048 default is excessive, new default 512 with min 128 and max 2048.
Thanks for your PR!
Are you sure |
|
2048 is an incredibly high value, even 512 is very generous. Would be safe with 128 even at wideband and highest bit rate, let alone narrowband. This is a single speex frame part |
Fix for an issue where
CVoiceDataPacket::Readrejected packets and caused audio dropouts due towhile (uiSpeexFramesAvailable-- > 0).Increased theMAX_VOICE_PACKETS_PER_INTERVALlimit from5to32.Moved the
VOICE_PACKET_INTERVAL_MSandMAX_VOICE_PACKETS_PER_INTERVALlimits to the server configuration asvoice_packets_intervalandmax_voice_packets_per_interval.Also increased the default value of
max_voice_packets_per_intervalfrom5to32.Hopefully, there won't be any more issues.
@Lpsd