Silence an implicit int-to-float conversion warning on MSVC

This commit is contained in:
Chris Robinson
2012-10-13 11:00:43 -07:00
parent e60281c927
commit 9bd3b88a58
+1 -1
View File
@@ -387,7 +387,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
}
else
{
DryGain *= lerp(1.0f, 1.0f/sqrtf(Device->NumChan), hwidth/F_PI);
DryGain *= lerp(1.0f, 1.0f/sqrtf((float)Device->NumChan), hwidth/F_PI);
for(c = 0;c < num_channels;c++)
{
/* Special-case LFE */