summaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-23 23:16:42 -0700
committerChris Robinson <[email protected]>2011-09-23 23:16:42 -0700
commit6a2b2a0aed9a7ab07142185ba80da58e96f13df6 (patch)
treef56d5a714501e34660b2e2724ea2db19800f3a1b /Alc/hrtf.c
parent9060d0cc36eb0bbc52b0d9cc9caefaf89451a138 (diff)
Silence MSVC warnings in the HRTF code
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index cad6f9f1..9decb545 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -231,7 +231,7 @@ ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat a
ridx[3] = evOffset[evidx[1]] + ((azCount[evidx[1]]-azidx[1]) % azCount[evidx[1]]);
// Calculate the stepping parameters.
- delta = maxf(floor(delta*(Hrtf->sampleRate*0.015f) + 0.5), 1.0f);
+ delta = maxf(floor(delta*(Hrtf->sampleRate*0.015f) + 0.5f), 1.0f);
step = 1.0f / delta;
// Calculate the normalized and attenuated target HRIR coefficients using
@@ -276,8 +276,8 @@ ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat a
// Calculate the HRIR delays using linear interpolation. Then calculate
// the delay stepping values using the target and previous running
// delays.
- left = delays[0] - (delayStep[0] * counter);
- right = delays[1] - (delayStep[1] * counter);
+ left = (ALfloat)(delays[0] - (delayStep[0] * counter));
+ right = (ALfloat)(delays[1] - (delayStep[1] * counter));
delays[0] = (ALuint)(lerp(lerp(Hrtf->delays[lidx[0]], Hrtf->delays[lidx[1]], mu[0]),
lerp(Hrtf->delays[lidx[2]], Hrtf->delays[lidx[3]], mu[1]),