From f23ff0394d8ae58dc12f8d1076fe5cd9dfde383d Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Fri, 26 Apr 2019 15:58:25 -0700
Subject: Specify the buffer size as itself instead of the period count

Certain backends don't need a buffer size to be a strict multiple of the period
count, which allows a little more flexibility. The period/update size simply
acts as the minimum request, which helps control CPU load by determining how
often parameter and other pre-mixing updates are processed.
---
 OpenAL32/Include/alMain.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'OpenAL32')

diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 947b6f1b..ef8181e4 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -342,7 +342,8 @@ struct ALCdevice {
 
     ALuint Frequency{};
     ALuint UpdateSize{};
-    ALuint NumUpdates{};
+    ALuint BufferSize{};
+
     DevFmtChannels FmtChans{};
     DevFmtType     FmtType{};
     ALboolean IsHeadphones{AL_FALSE};
-- 
cgit v1.2.3