mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 14:54:29 +02:00
remove resizing of jitter buffers for now, only ask for 1 frame
This commit is contained in:
parent
355ab2cb95
commit
fda60cc8d5
1 changed files with 5 additions and 3 deletions
|
@ -234,11 +234,12 @@ bool PositionalAudioRingBuffer::shouldBeAddedToMix() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void PositionalAudioRingBuffer::updateDesiredJitterBufferFrames() {
|
void PositionalAudioRingBuffer::updateDesiredJitterBufferFrames() {
|
||||||
|
|
||||||
const float USECS_PER_FRAME = NETWORK_BUFFER_LENGTH_SAMPLES_PER_CHANNEL * USECS_PER_SECOND / (float)SAMPLE_RATE;
|
|
||||||
|
|
||||||
if (_interframeTimeGapStats.hasNewWindowMaxGapAvailable()) {
|
if (_interframeTimeGapStats.hasNewWindowMaxGapAvailable()) {
|
||||||
|
|
||||||
|
_desiredJitterBufferFrames = 1; // HACK to see if this fixes the audio silence
|
||||||
|
/*
|
||||||
|
const float USECS_PER_FRAME = NETWORK_BUFFER_LENGTH_SAMPLES_PER_CHANNEL * USECS_PER_SECOND / (float)SAMPLE_RATE;
|
||||||
|
|
||||||
_desiredJitterBufferFrames = ceilf((float)_interframeTimeGapStats.getWindowMaxGap() / USECS_PER_FRAME);
|
_desiredJitterBufferFrames = ceilf((float)_interframeTimeGapStats.getWindowMaxGap() / USECS_PER_FRAME);
|
||||||
if (_desiredJitterBufferFrames < 1) {
|
if (_desiredJitterBufferFrames < 1) {
|
||||||
_desiredJitterBufferFrames = 1;
|
_desiredJitterBufferFrames = 1;
|
||||||
|
@ -247,5 +248,6 @@ void PositionalAudioRingBuffer::updateDesiredJitterBufferFrames() {
|
||||||
if (_desiredJitterBufferFrames > maxDesired) {
|
if (_desiredJitterBufferFrames > maxDesired) {
|
||||||
_desiredJitterBufferFrames = maxDesired;
|
_desiredJitterBufferFrames = maxDesired;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue