aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-26 12:33:00 -0800
committerChris Robinson <[email protected]>2020-12-26 12:33:00 -0800
commit507cbfa0271e6183a06c5b2eec3465bc37a108e5 (patch)
treeedcb87473a70ea6b57ff01a400b1adfd149b9a2f /al/auxeffectslot.cpp
parent54719de13235f6ea216e8d200661027c047bd283 (diff)
Combine EffectState::deviceUpdate with setBuffer
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index 4c6ea288..e43ad4ad 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -655,7 +655,7 @@ START_API_FUNC
FPUCtl mixer_mode{};
auto *state = slot->Effect.State.get();
- state->setBuffer(device, buffer);
+ state->deviceUpdate(device, buffer);
}
break;
@@ -935,9 +935,7 @@ ALenum ALeffectslot::initEffect(ALeffect *effect, ALCcontext *context)
State->mOutTarget = Device->Dry.Buffer;
{
FPUCtl mixer_mode{};
- State->deviceUpdate(Device);
- if(Buffer)
- State->setBuffer(Device, Buffer);
+ State->deviceUpdate(Device, Buffer);
}
Effect.Type = newtype;