aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/equalizer.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/equalizer.c
parent01adfde1994c5482305b5ce54ffd921988a84616 (diff)
Combine some fields into a struct
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r--Alc/effects/equalizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c
index ee8d65cb..5677426d 100644
--- a/Alc/effects/equalizer.c
+++ b/Alc/effects/equalizer.c
@@ -93,7 +93,7 @@ static ALboolean ALequalizerState_deviceUpdate(ALequalizerState *UNUSED(state),
static ALvoid ALequalizerState_update(ALequalizerState *state, ALCdevice *device, const ALeffectslot *slot)
{
ALfloat frequency = (ALfloat)device->Frequency;
- ALfloat gain = sqrtf(1.0f / device->NumChan) * slot->Gain;
+ ALfloat gain = sqrtf(1.0f / device->NumSpeakers) * slot->Gain;
SetGains(device, gain, state->Gain);