diff options
author | Chris Robinson <[email protected]> | 2020-09-05 20:48:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-09-05 20:48:56 -0700 |
commit | c52bf8c401aaf78bbcfa99b33fdaf4838999d547 (patch) | |
tree | 453bccbc16da43e7ec5403b57feab52e82e12faa /al/event.cpp | |
parent | 9975aeb37f0bcb9a35b1cba7a755abc4774883d0 (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.cpp | 5 |
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; |