diff options
author | Chris Robinson <[email protected]> | 2014-11-25 22:24:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-25 22:24:29 -0800 |
commit | 1db83923446bde61b9c5cce7a6cb9c4da56269c9 (patch) | |
tree | c70f67e39d855c5d819ae5dd13f426e4bb07740a /Alc/panning.c | |
parent | bdbf6613ef4d57f15f5e7e3cbc31211a0c57e575 (diff) |
Improve ambient gain calculations
Diffstat (limited to 'Alc/panning.c')
-rw-r--r-- | Alc/panning.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index a9d0f5cb..4a3541c2 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -92,7 +92,7 @@ void ComputeAmbientGains(const ALCdevice *device, ALfloat ingain, ALfloat gains[ // scaling the W channel input by sqrt(0.5). The square root of the // base average provides for a more perceptual average volume, better // suited to non-directional gains. - gains[i] = sqrtf(device->Channel[i].HOACoeff[0]/1.4142f)*1.4142f * ingain; + gains[i] = sqrtf(device->Channel[i].HOACoeff[0]/1.4142f) * ingain; } } |