mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 23:26:25 +02:00
add useDynamicJitterBuffers to the audio mixer stats page
This commit is contained in:
parent
01ebefbffd
commit
7bbbde8957
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,8 @@ void AudioMixer::readPendingDatagrams() {
|
|||
|
||||
void AudioMixer::sendStatsPacket() {
|
||||
static QJsonObject statsObject;
|
||||
|
||||
statsObject["useDynamicJitterBuffers"] = _useDynamicJitterBuffers;
|
||||
statsObject["trailing_sleep_percentage"] = _trailingSleepRatio * 100.0f;
|
||||
statsObject["performance_throttling_ratio"] = _performanceThrottlingRatio;
|
||||
|
||||
|
@ -488,6 +490,7 @@ void AudioMixer::run() {
|
|||
_useDynamicJitterBuffers = true;
|
||||
} else {
|
||||
qDebug() << "Dynamic jitter buffers disabled, using old behavior.";
|
||||
_useDynamicJitterBuffers = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue