diff options
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index 25531cf5..f79f2063 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -44,8 +44,7 @@ ClockLatency BackendBase::getClockLatency() ALuint refcount; do { - while(((refcount=ReadRef(mDevice->MixCount))&1) != 0) - std::this_thread::yield(); + refcount = mDevice->waitForMix(); ret.ClockTime = GetDeviceClockTime(mDevice); std::atomic_thread_fence(std::memory_order_acquire); } while(refcount != ReadRef(mDevice->MixCount)); |