diff options
author | Chris Robinson <[email protected]> | 2014-11-04 03:33:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-04 03:33:35 -0800 |
commit | 6083a684d1cad2ea97ce966b7b2ca011d1f37fe1 (patch) | |
tree | 2f419e5de632b2caadd7bed1b934f4afdd96c902 /Alc/effects/equalizer.c | |
parent | d8cfdb3f348b3e4dd545a5ebd7f282aa2b4ee585 (diff) |
Use a method to set omni-directional channel gains
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r-- | Alc/effects/equalizer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c index d04f36ee..f555cbe5 100644 --- a/Alc/effects/equalizer.c +++ b/Alc/effects/equalizer.c @@ -93,9 +93,8 @@ 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 = 1.0f/device->NumSpeakers * slot->Gain; - SetGains(device, gain, state->Gain); + ComputeAmbientGains(device, slot->Gain, state->Gain); /* Calculate coefficients for the each type of filter */ ALfilterState_setParams(&state->filter[0], ALfilterType_LowShelf, |