aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-04 03:33:35 -0800
committerChris Robinson <[email protected]>2014-11-04 03:33:35 -0800
commit6083a684d1cad2ea97ce966b7b2ca011d1f37fe1 (patch)
tree2f419e5de632b2caadd7bed1b934f4afdd96c902 /Alc/effects/reverb.c
parentd8cfdb3f348b3e4dd545a5ebd7f282aa2b4ee585 (diff)
Use a method to set omni-directional channel gains
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 45d25da7..5b937d96 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1148,8 +1148,7 @@ static ALvoid ALreverbState_update(ALreverbState *State, ALCdevice *Device, cons
else
{
/* Update channel gains */
- ALfloat gain = 2.0f/Device->NumSpeakers * Slot->Gain * ReverbBoost;
- SetGains(Device, gain, State->Gain);
+ ComputeAmbientGains(Device, Slot->Gain*2.0f, State->Gain);
}
}