From 35a0430c8134c6a13768cd6bf7b252d24ac9e2aa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 May 2011 09:36:36 -0700 Subject: Store the separate effect parameters in a union --- Alc/ALu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index 45caad16..e0546a27 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -423,7 +423,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) if(ALSource->Send[i].Slot && (ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB || ALSource->Send[i].Slot->effect.type == AL_EFFECT_EAXREVERB)) - RoomRolloff[i] += ALSource->Send[i].Slot->effect.Reverb.RoomRolloffFactor; + RoomRolloff[i] += ALSource->Send[i].Slot->effect.Params.Reverb.RoomRolloffFactor; } switch(ALContext->SourceDistanceModel ? ALSource->DistanceModel : @@ -570,10 +570,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) */ WetGain[i] *= aluPow(10.0f, EffectiveDist / (SPEEDOFSOUNDMETRESPERSEC * - Slot->effect.Reverb.DecayTime) * + Slot->effect.Params.Reverb.DecayTime) * (-60.0/20.0)); - WetGainHF[i] *= aluPow(Slot->effect.Reverb.AirAbsorptionGainHF, + WetGainHF[i] *= aluPow(Slot->effect.Params.Reverb.AirAbsorptionGainHF, AirAbsorptionFactor * EffectiveDist); } } -- cgit v1.2.3