From 4e66224d6c14cffa2d6108bd0845f2dc35baec89 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 10 Sep 2014 17:53:01 -0700 Subject: Combine some fields into a struct --- Alc/effects/distortion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/effects/distortion.c') diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c index a5f876cb..04a05d99 100644 --- a/Alc/effects/distortion.c +++ b/Alc/effects/distortion.c @@ -82,7 +82,7 @@ static ALvoid ALdistortionState_update(ALdistortionState *state, ALCdevice *Devi ALfilterState_setParams(&state->bandpass, ALfilterType_BandPass, 1.0f, cutoff / (frequency*4.0f), bandwidth); - gain = sqrtf(1.0f / Device->NumChan) * Slot->Gain; + gain = sqrtf(1.0f / Device->NumSpeakers) * Slot->Gain; SetGains(Device, gain, state->Gain); } -- cgit v1.2.3