From c52bf8c401aaf78bbcfa99b33fdaf4838999d547 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Sep 2020 20:48:56 -0700 Subject: 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. --- al/event.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'al/event.cpp') 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; -- cgit v1.2.3