aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-30 21:38:42 -0800
committerChris Robinson <[email protected]>2018-12-30 21:38:42 -0800
commit9f5c9a2260849240bd680b8fdf533acdef7f9de1 (patch)
treed7e1c5873e323e7edcd96c1a2a037ea18063501c /OpenAL32/alAuxEffectSlot.cpp
parent3df1d185f8bcf8d470249594a15d0e781a705ca2 (diff)
Rename BackendLock to StateLock
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.cpp')
-rw-r--r--OpenAL32/alAuxEffectSlot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp
index 1b3b97be..fc43edbe 100644
--- a/OpenAL32/alAuxEffectSlot.cpp
+++ b/OpenAL32/alAuxEffectSlot.cpp
@@ -556,12 +556,12 @@ ALenum InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect
FPUCtl mixer_mode{};
ALCdevice *Device{Context->Device};
- std::unique_lock<std::mutex> backlock{Device->BackendLock};
+ std::unique_lock<std::mutex> statelock{Device->StateLock};
State->mOutBuffer = Device->Dry.Buffer;
State->mOutChannels = Device->Dry.NumChannels;
if(State->deviceUpdate(Device) == AL_FALSE)
{
- backlock.unlock();
+ statelock.unlock();
mixer_mode.leave();
State->DecRef();
return AL_OUT_OF_MEMORY;