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/compressor.c | |
parent | 01adfde1994c5482305b5ce54ffd921988a84616 (diff) |
Combine some fields into a struct
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r-- | Alc/effects/compressor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index 6234121c..1c0054e7 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -61,7 +61,7 @@ static ALvoid ALcompressorState_update(ALcompressorState *state, ALCdevice *Devi state->Enabled = Slot->EffectProps.Compressor.OnOff; - gain = sqrtf(1.0f / Device->NumChan) * Slot->Gain; + gain = sqrtf(1.0f / Device->NumSpeakers) * Slot->Gain; SetGains(Device, gain, state->Gain); } |