diff options
author | Chris Robinson <[email protected]> | 2014-02-07 03:20:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-02-07 03:20:27 -0800 |
commit | 6f711c32ba39c8c0b1fe712bb9c9b1361dd3ff40 (patch) | |
tree | 758bffc5074c15114426f2ebd1681bde10dcad1a /Alc/effects/compressor.c | |
parent | 926ecc2dbe4d3ab2493e210a388b2e2f1179383b (diff) |
Fix some types
Diffstat (limited to 'Alc/effects/compressor.c')
-rw-r--r-- | Alc/effects/compressor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/compressor.c b/Alc/effects/compressor.c index 14c0ed10..bab155c8 100644 --- a/Alc/effects/compressor.c +++ b/Alc/effects/compressor.c @@ -84,12 +84,12 @@ static ALvoid ALcompressorState_process(ALcompressorState *state, ALuint Samples { smp = SamplesIn[it+base]; - amplitude = fabs(smp); + amplitude = fabsf(smp); if(amplitude > gain) gain = minf(gain+state->AttackRate, amplitude); else if(amplitude < gain) gain = maxf(gain-state->ReleaseRate, amplitude); - output = 1.0 / clampf(gain, 0.5f, 2.0f); + output = 1.0f / clampf(gain, 0.5f, 2.0f); temps[it] = smp * output; } |