diff options
author | Chris Robinson <[email protected]> | 2012-09-27 13:52:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-27 13:52:45 -0700 |
commit | 06a0d1b86efd74f7712b4c5ebdffea27e636edb0 (patch) | |
tree | ac3108493eca2dbfda3c68ceb0890e3cf23d82e0 | |
parent | 41b2c2f3bbd3a36be7272ceb7711a9bf97042e26 (diff) |
Use an unsigned type for the sample position fraction
-rw-r--r-- | Alc/mixer_c.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index a85d3ee9..b1ffb11b 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -6,11 +6,11 @@ #include "alAuxEffectSlot.h" -static __inline ALfloat point32(const ALfloat *vals, ALint frac) +static __inline ALfloat point32(const ALfloat *vals, ALuint frac) { return vals[0]; (void)frac; } -static __inline ALfloat lerp32(const ALfloat *vals, ALint frac) +static __inline ALfloat lerp32(const ALfloat *vals, ALuint frac) { return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); } -static __inline ALfloat cubic32(const ALfloat *vals, ALint frac) +static __inline ALfloat cubic32(const ALfloat *vals, ALuint frac) { return cubic(vals[-1], vals[0], vals[1], vals[2], frac * (1.0f/FRACTIONONE)); } #define DECL_TEMPLATE(Sampler) \ |