From 99fcd6f816c125ebb45905f4adf7a423e860e561 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 10 Oct 2012 04:08:35 -0700 Subject: Properly scale wide-stereo sources --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index 326766c5..5c897927 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -339,7 +339,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } else { - DryGain *= lerp(1.0f, 1.0f/sqrtf(Device->NumChan), hwidth/(F_PI*2.0f)); + DryGain *= lerp(1.0f, 1.0f/sqrtf(Device->NumChan), hwidth/F_PI); for(c = 0;c < num_channels;c++) { /* Special-case LFE */ -- cgit v1.2.3