From b4f9f894806fe5fa9adb1ebb481392838cc81e2e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 23 Sep 2011 23:03:59 -0700 Subject: Use float types for the resamplers instead of double --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index 6c474f23..0697e943 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -584,8 +584,8 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) if(Angle >= InnerAngle && Angle <= OuterAngle) { ALfloat scale = (Angle-InnerAngle) / (OuterAngle-InnerAngle); - ConeVolume = lerp(1.0, ALSource->flOuterGain, scale); - ConeHF = lerp(1.0, ALSource->OuterGainHF, scale); + ConeVolume = lerp(1.0f, ALSource->flOuterGain, scale); + ConeHF = lerp(1.0f, ALSource->OuterGainHF, scale); } else if(Angle > OuterAngle) { -- cgit v1.2.3