mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 15:22:09 +02:00
Case 22140 - Dynamic Jitter Buffer switch on admin UI disables dynamic buffers when it's set to enable them.
The dynamic jitter buffer switch is inverted in that it disables dynamic buffers when it set to enable them, and vice versa. As it defaults to 'enable,' dynamic buffers are basically disabled for everyone which will affect audio quality negatively.
This commit is contained in:
parent
89ff63e8bb
commit
1f838c681c
1 changed files with 3 additions and 3 deletions
|
@ -588,8 +588,8 @@ void AudioMixer::parseSettingsObject(const QJsonObject& settingsObject) {
|
|||
// check the payload to see if we have asked for dynamicJitterBuffer support
|
||||
const QString DYNAMIC_JITTER_BUFFER_JSON_KEY = "dynamic_jitter_buffer";
|
||||
bool enableDynamicJitterBuffer = audioBufferGroupObject[DYNAMIC_JITTER_BUFFER_JSON_KEY].toBool();
|
||||
if (enableDynamicJitterBuffer) {
|
||||
qCDebug(audio) << "Enabling dynamic jitter buffers.";
|
||||
if (!enableDynamicJitterBuffer) {
|
||||
qCDebug(audio) << "Disabling dynamic jitter buffers.";
|
||||
|
||||
bool ok;
|
||||
const QString DESIRED_JITTER_BUFFER_FRAMES_KEY = "static_desired_jitter_buffer_frames";
|
||||
|
@ -599,7 +599,7 @@ void AudioMixer::parseSettingsObject(const QJsonObject& settingsObject) {
|
|||
}
|
||||
qCDebug(audio) << "Static desired jitter buffer frames:" << _numStaticJitterFrames;
|
||||
} else {
|
||||
qCDebug(audio) << "Disabling dynamic jitter buffers.";
|
||||
qCDebug(audio) << "Enabling dynamic jitter buffers.";
|
||||
_numStaticJitterFrames = DISABLE_STATIC_JITTER_FRAMES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue