aboutsummaryrefslogtreecommitdiffstats
path: root/al/event.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-05 20:48:56 -0700
committerChris Robinson <[email protected]>2020-09-05 20:48:56 -0700
commitc52bf8c401aaf78bbcfa99b33fdaf4838999d547 (patch)
tree453bccbc16da43e7ec5403b57feab52e82e12faa /al/event.cpp
parent9975aeb37f0bcb9a35b1cba7a755abc4774883d0 (diff)
Rework effect slot buffer setting
Rather than creating an effect-specific buffer that gets passed along as a property, the buffer is set the effect state when the effect state is created, the device is updated, or the buffer is changed. The buffer can only be set while the effect slot isn't playing, so it won't be changed or updated while the mixer is processing the effect state.
Diffstat (limited to 'al/event.cpp')
-rw-r--r--al/event.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/al/event.cpp b/al/event.cpp
index 6c004ef3..cd8ea7c2 100644
--- a/al/event.cpp
+++ b/al/event.cpp
@@ -60,11 +60,6 @@ static int EventThread(ALCcontext *context)
evt.u.mEffectState->release();
continue;
}
- if(evt.EnumType == EventType_ReleaseEffectBuffer)
- {
- evt.u.mEffectBuffer->release();
- continue;
- }
ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_acquire)};
if(!context->mEventCb) continue;