aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index effa06b4..3d4e37f9 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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;