From a96f8177387818d3ef69778e3f78a9ed251326c1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 16 Aug 2011 06:13:55 -0700 Subject: Avoid a float->int->float conversion --- Alc/hrtf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/hrtf.c b/Alc/hrtf.c index 4b3b2160..226138a0 100644 --- a/Alc/hrtf.c +++ b/Alc/hrtf.c @@ -77,7 +77,7 @@ static void CalcAzIndices(ALuint evidx, ALfloat az, ALuint *azidx, ALfloat *azmu az = (M_PI*2.0f + az) * azCount[evidx] / (M_PI*2.0f); azidx[0] = (ALuint)az % azCount[evidx]; azidx[1] = (azidx[0] + 1) % azCount[evidx]; - *azmu = az - (ALuint)az; + *azmu = az - floor(az); } // Calculates the normalized HRTF transition factor (delta) from the changes -- cgit v1.2.3