From 94e91a9034efbea1a2a2aa89144f384c8c4c8bf3 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 5 Mar 2019 18:40:18 +1000 Subject: [PATCH] Tweak default buffers sizes. The default low-latency buffer size is now 10 milliseconds per period. The default conservative buffer size is now 100 milliseconds per period. --- mini_al.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini_al.h b/mini_al.h index e2fff266..a9f2f0b1 100644 --- a/mini_al.h +++ b/mini_al.h @@ -3259,12 +3259,12 @@ static MAL_INLINE mal_bool32 mal_is_big_endian() // The base buffer size in milliseconds for low latency mode. #ifndef MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY -#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY 25 +#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_LOW_LATENCY (10*MAL_DEFAULT_PERIODS) #endif // The base buffer size in milliseconds for conservative mode. #ifndef MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE -#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE 150 +#define MAL_BASE_BUFFER_SIZE_IN_MILLISECONDS_CONSERVATIVE (100*MAL_DEFAULT_PERIODS) #endif