diff options
author | Chris Robinson <[email protected]> | 2014-09-10 17:53:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-09-10 17:53:01 -0700 |
commit | 4e66224d6c14cffa2d6108bd0845f2dc35baec89 (patch) | |
tree | a617c215c32692d62cc3220618fedce5cc148868 /Alc/effects/reverb.c | |
parent | 01adfde1994c5482305b5ce54ffd921988a84616 (diff) |
Combine some fields into a struct
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r-- | Alc/effects/reverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index a5683767..1e9cd550 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1043,7 +1043,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection /* Attenuate reverb according to its coverage (dirGain=0 will give * Gain*ambientGain, and dirGain=1 will give Gain). */ - ambientGain = minf(sqrtf(2.0f/Device->NumChan), 1.0f); + ambientGain = minf(sqrtf(2.0f/Device->NumSpeakers), 1.0f); length = earlyPan[0]*earlyPan[0] + earlyPan[1]*earlyPan[1] + earlyPan[2]*earlyPan[2]; if(length > 1.0f) @@ -1158,7 +1158,7 @@ static ALvoid ALreverbState_update(ALreverbState *State, ALCdevice *Device, cons else { /* Update channel gains */ - ALfloat gain = sqrtf(2.0f/Device->NumChan) * ReverbBoost * Slot->Gain; + ALfloat gain = sqrtf(2.0f/Device->NumSpeakers) * ReverbBoost * Slot->Gain; SetGains(Device, gain, State->Gain); } } |