diff options
author | Chris Robinson <[email protected]> | 2017-06-23 05:34:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-23 05:34:43 -0700 |
commit | 44a940d8d6140f142c4a88fef0281b54861e1e0c (patch) | |
tree | d3d0413e33c5d2d2da1f48cfe9550af6cd484571 /Alc/converter.c | |
parent | e07166e93cf392e3dac0a8ee71696a8d6d5114fc (diff) |
Forward Sample_ALuint to Sample_ALint
Diffstat (limited to 'Alc/converter.c')
-rw-r--r-- | Alc/converter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/converter.c b/Alc/converter.c index bc9d5087..9fe76faa 100644 --- a/Alc/converter.c +++ b/Alc/converter.c @@ -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; } |