aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index a559a063..285da1d4 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -125,13 +125,6 @@ inline ALbuffer *LookupBuffer(ALCdevice *device, ALuint id) noexcept
}
-inline auto GetEffectBuffer(ALbuffer *buffer) noexcept -> EffectState::Buffer
-{
- if(!buffer) return EffectState::Buffer{};
- return EffectState::Buffer{buffer, buffer->mData};
-}
-
-
void AddActiveEffectSlots(const al::span<ALeffectslot*> auxslots, ALCcontext *context)
{
if(auxslots.empty()) return;
@@ -673,7 +666,7 @@ START_API_FUNC
FPUCtl mixer_mode{};
auto *state = slot->Effect.State.get();
- state->deviceUpdate(device, GetEffectBuffer(buffer));
+ state->deviceUpdate(device, buffer);
}
break;
@@ -952,7 +945,7 @@ ALenum ALeffectslot::initEffect(ALenum effectType, const EffectProps &effectProp
state->mOutTarget = device->Dry.Buffer;
{
FPUCtl mixer_mode{};
- state->deviceUpdate(device, GetEffectBuffer(Buffer));
+ state->deviceUpdate(device, Buffer);
}
Effect.Type = newtype;