[client] audio: reduce hardcoded minimum latency

The current minimum target latency is partially based upon the default qemu
behaviour whereby audio packets are delivered in a sawtooth pattern, with
packet timestamps drifting between 5ms above and below the measured clock.
This 5ms error is baked into the minimum target latency to avoid
underrunning.

This sawtooth pattern can be reduced by specifying a lower timer period in
the qemu configuration, so remove it from the hardcoded minimum latency and
add it to the default configurable buffer latency instead. This allows
users that have configured their VM appropriately to reduce the overall
latency.
This commit is contained in:
Chris Spencer
2022-02-27 17:09:58 +00:00
committed by Geoffrey McRae
parent c2523be4b4
commit 72033f3822
2 changed files with 5 additions and 17 deletions

View File

@@ -478,7 +478,7 @@ static struct Option options[] =
.name = "bufferLatency",
.description = "Additional buffer latency in milliseconds",
.type = OPTION_TYPE_INT,
.value.x_int = 8
.value.x_int = 13
},
{0}
};