From e123e7bbda4330559ef03a5362bc93064eb87e4e Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Mon, 4 Dec 2023 01:18:49 -0800
Subject: Use RAII to handle writing under the mixer seqlock

---
 alc/backends/base.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'alc/backends/base.cpp')

diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp
index b2b567a6..1677ae19 100644
--- a/alc/backends/base.cpp
+++ b/alc/backends/base.cpp
@@ -52,7 +52,7 @@ ClockLatency BackendBase::getClockLatency()
         refcount = mDevice->waitForMix();
         ret.ClockTime = mDevice->getClockTime();
         std::atomic_thread_fence(std::memory_order_acquire);
-    } while(refcount != mDevice->MixCount.load(std::memory_order_relaxed));
+    } while(refcount != mDevice->mMixCount.load(std::memory_order_relaxed));
 
     /* NOTE: The device will generally have about all but one periods filled at
      * any given time during playback. Without a more accurate measurement from
-- 
cgit v1.2.3