Fix rolloff calculations for auxiliary sends
This commit is contained in:
parent
d307ee8c2f
commit
b2d5367830
@ -405,8 +405,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
|
|||||||
AirAbsorptionFactor = ALSource->AirAbsorptionFactor;
|
AirAbsorptionFactor = ALSource->AirAbsorptionFactor;
|
||||||
for(i = 0;i < NumSends;i++)
|
for(i = 0;i < NumSends;i++)
|
||||||
{
|
{
|
||||||
RoomRolloff[i] = ((i==0) ? ALSource->RoomRolloffFactor :
|
RoomRolloff[i] = ALSource->RoomRolloffFactor;
|
||||||
RoomRolloff[i-1]);
|
|
||||||
if(ALSource->Send[i].Slot &&
|
if(ALSource->Send[i].Slot &&
|
||||||
(ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB ||
|
(ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB ||
|
||||||
ALSource->Send[i].Slot->effect.type == AL_EFFECT_EAXREVERB))
|
ALSource->Send[i].Slot->effect.type == AL_EFFECT_EAXREVERB))
|
||||||
|
Loading…
Reference in New Issue
Block a user