Forward Sample_ALuint to Sample_ALint

This commit is contained in:
Chris Robinson 2017-06-23 05:34:43 -07:00
parent e07166e93c
commit 44a940d8d6

View File

@ -59,7 +59,7 @@ static inline ALfloat Sample_ALushort(ALushort val)
static inline ALfloat Sample_ALint(ALint val)
{ return (val>>7) * (1.0f/16777216.0f); }
static inline ALfloat Sample_ALuint(ALuint val)
{ return ((ALint)(val>>7) - 16777216) * (1.0f/16777216.0f); }
{ return Sample_ALint(val - INT_MAX - 1); }
static inline ALfloat Sample_ALfloat(ALfloat val)
{ return val; }