os: decrease Audio::PERIOD to lower latency

To archive lower latency the length of a period was reduced from
2048 (~46ms) to 512 (~11.6ms) samples.

It should be noted that this change probably breaks audio in Qemu on
most systems.

Issue #1644.
This commit is contained in:
Josef Söntgen 2015-05-08 16:42:38 +02:00 committed by Christian Helmuth
parent 2843a70c0e
commit 81599f89ea

View File

@ -50,7 +50,7 @@ namespace Audio_out {
enum {
QUEUE_SIZE = 16, /* buffer queue size */
PERIOD = 2048, /* samples per period */
PERIOD = 512, /* samples per period (~11.6ms) */
SAMPLE_RATE = 44100,
SAMPLE_SIZE = sizeof(float),
};