diff options
author | Chris Robinson <[email protected]> | 2011-08-16 06:13:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-16 06:13:55 -0700 |
commit | a96f8177387818d3ef69778e3f78a9ed251326c1 (patch) | |
tree | a485318d9c3d2db0a91eb9e1d4b9e749aa9fb5f2 /Alc | |
parent | 8a51a7ea2d5234555f00cf9a391eefceb1989efa (diff) |
Avoid a float->int->float conversion
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/hrtf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |