aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/modulator.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-09-10 17:53:01 -0700
committerChris Robinson <[email protected]>2014-09-10 17:53:01 -0700
commit4e66224d6c14cffa2d6108bd0845f2dc35baec89 (patch)
treea617c215c32692d62cc3220618fedce5cc148868 /Alc/effects/modulator.c
parent01adfde1994c5482305b5ce54ffd921988a84616 (diff)
Combine some fields into a struct
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r--Alc/effects/modulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c
index b6b960c7..0665ad6c 100644
--- a/Alc/effects/modulator.c
+++ b/Alc/effects/modulator.c
@@ -149,7 +149,7 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, ALCdevice *Device
state->Filter.a[1] = -a;
state->Filter.a[2] = 0.0f;
- gain = sqrtf(1.0f/Device->NumChan) * Slot->Gain;
+ gain = sqrtf(1.0f/Device->NumSpeakers) * Slot->Gain;
SetGains(Device, gain, state->Gain);
}