diff options
author | Chris Robinson <[email protected]> | 2014-09-30 21:50:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-09-30 21:50:29 -0700 |
commit | 2d89d33dd1ad252ef0a8a933a486c79ddf77bfc8 (patch) | |
tree | 4a14adac4acce5ecd1011521acf9b66ad6dd145e | |
parent | af7330de881dd165a37c6753269a7bec1c27f85a (diff) |
Add a cast for MSVC
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -966,7 +966,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte /* Normalize the length, and compute panned gains. */ if(!(Distance > FLT_EPSILON)) { - ALfloat gain = 1.0f / sqrtf(Device->NumSpeakers); + ALfloat gain = 1.0f / sqrtf((float)Device->NumSpeakers); for(i = 0;i < (ALint)Device->NumSpeakers;i++) { enum Channel chan = Device->Speaker[i].ChanName; |