Effectslot's Effectstate should never be NULL
This commit is contained in:
parent
56b094767b
commit
d9d8319c22
@ -1582,8 +1582,6 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin
|
||||
for(pos = 0;pos < context->EffectSlotMap.size;pos++)
|
||||
{
|
||||
ALeffectslot *slot = context->EffectSlotMap.array[pos].value;
|
||||
if(!slot->EffectState)
|
||||
continue;
|
||||
|
||||
if(ALEffect_DeviceUpdate(slot->EffectState, device) == AL_FALSE)
|
||||
{
|
||||
|
@ -610,8 +610,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
|
||||
for(e = 0;e < ALContext->EffectSlotMap.size;e++)
|
||||
{
|
||||
ALEffectSlot = ALContext->EffectSlotMap.array[e].value;
|
||||
if(ALEffectSlot->EffectState)
|
||||
ALEffect_Process(ALEffectSlot->EffectState, ALEffectSlot, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
|
||||
ALEffect_Process(ALEffectSlot->EffectState, ALEffectSlot, SamplesToDo, ALEffectSlot->WetBuffer, DryBuffer);
|
||||
|
||||
for(i = 0;i < SamplesToDo;i++)
|
||||
ALEffectSlot->WetBuffer[i] = 0.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user