mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 20:42:56 +02:00
ignore the numSilentSamples from client, always assume one frame
This commit is contained in:
parent
4becb66e2a
commit
8a633743b3
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ int PositionalAudioRingBuffer::parseData(const QByteArray& packet) {
|
||||||
|
|
||||||
readBytes += sizeof(int16_t);
|
readBytes += sizeof(int16_t);
|
||||||
|
|
||||||
|
// NOTE: fixes a bug in old clients that would send garbage for their number of silentSamples
|
||||||
|
numSilentSamples = getNumSamplesPerFrame();
|
||||||
|
|
||||||
if (numSilentSamples > 0) {
|
if (numSilentSamples > 0) {
|
||||||
if (_currentJitterBufferFrames > _desiredJitterBufferFrames) {
|
if (_currentJitterBufferFrames > _desiredJitterBufferFrames) {
|
||||||
// our current jitter buffer size exceeds its desired value, so ignore some silent
|
// our current jitter buffer size exceeds its desired value, so ignore some silent
|
||||||
|
|
Loading…
Reference in a new issue