From 44bd98fee5cf4fa1ba5ccd0e042ed234a5756bf4 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 15 Nov 2018 15:34:49 +1000 Subject: [PATCH] Minor tweaks to the Core Audio backend. --- mini_al.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index ffa2a130..52de8f12 100644 --- a/mini_al.h +++ b/mini_al.h @@ -15299,11 +15299,14 @@ mal_result mal_device_init_internal__coreaudio(mal_context* pContext, mal_device if (result != MAL_SUCCESS) { return result; } + + pData->bufferSizeInFramesOut = actualBufferSizeInFrames * pData->periodsOut; #else actualBufferSizeInFrames = 4096; + pData->bufferSizeInFramesOut = actualBufferSizeInFrames; #endif - pData->bufferSizeInFramesOut = actualBufferSizeInFrames * pData->periodsOut; + // During testing I discovered that the buffer size can be too big. You'll get an error like this: //