Add a cast for MSVC

This commit is contained in:
Chris Robinson
2014-09-30 21:50:29 -07:00
parent af7330de88
commit 2d89d33dd1
+1 -1
View File
@@ -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;