From 81599f89eaaf883f140fbe24487f3d5c43dcb192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 8 May 2015 16:42:38 +0200 Subject: [PATCH] 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. --- repos/os/include/audio_out_session/audio_out_session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/audio_out_session/audio_out_session.h b/repos/os/include/audio_out_session/audio_out_session.h index 3f7e5459a..3787312ee 100644 --- a/repos/os/include/audio_out_session/audio_out_session.h +++ b/repos/os/include/audio_out_session/audio_out_session.h @@ -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), };