aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index eb3873f2..af8ff55d 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2318,11 +2318,6 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
{
auto *context = static_cast<ALCcontext*>(ctxbase);
- auto GetEffectBuffer = [](ALbuffer *buffer) noexcept -> EffectState::Buffer
- {
- if(!buffer) return EffectState::Buffer{};
- return EffectState::Buffer{buffer, buffer->mData};
- };
std::unique_lock<std::mutex> proplock{context->mPropLock};
std::unique_lock<std::mutex> slotlock{context->mEffectSlotLock};
@@ -2359,7 +2354,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
EffectState *state{slot->Effect.State.get()};
state->mOutTarget = device->Dry.Buffer;
- state->deviceUpdate(device, GetEffectBuffer(slot->Buffer));
+ state->deviceUpdate(device, slot->Buffer);
slot->updateProps(context);
}
@@ -2378,7 +2373,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
EffectState *state{slot->Effect.State.get()};
state->mOutTarget = device->Dry.Buffer;
- state->deviceUpdate(device, GetEffectBuffer(slot->Buffer));
+ state->deviceUpdate(device, slot->Buffer);
slot->updateProps(context);
}
}