From eb49290dabd5ca317337663ff7e8b25a311b83a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Feb 2020 04:58:02 -0800 Subject: Remove unnecessary locks now that the mixer doesn't require one --- alc/backends/sndio.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'alc/backends/sndio.cpp') diff --git a/alc/backends/sndio.cpp b/alc/backends/sndio.cpp index 0ca7062d..5b95a8f0 100644 --- a/alc/backends/sndio.cpp +++ b/alc/backends/sndio.cpp @@ -86,10 +86,7 @@ int SndioPlayback::mixerProc() ALubyte *WritePtr{mBuffer.data()}; size_t len{mBuffer.size()}; - { - std::lock_guard _{*this}; - aluMixData(mDevice, WritePtr, static_cast(len/frameSize), frameStep); - } + aluMixData(mDevice, WritePtr, static_cast(len/frameSize), frameStep); while(len > 0 && !mKillNow.load(std::memory_order_acquire)) { size_t wrote{sio_write(mSndHandle, WritePtr, len)}; -- cgit v1.2.3