diff options
author | Chris Robinson <[email protected]> | 2017-03-24 14:08:04 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-24 14:08:04 -0700 |
commit | 9ca92be0b87c97fccf613acb14b5c121cc881a88 (patch) | |
tree | acf8ec07282ea85d78be778e6b68c6aedf5d5be9 /Alc | |
parent | 1aca34468877feb07a2c05a23d4fdb8f41cecfd2 (diff) |
Properly calculate the echo damping
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/echo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c index 4293674f..672cdaca 100644 --- a/Alc/effects/echo.c +++ b/Alc/effects/echo.c @@ -126,7 +126,7 @@ static ALvoid ALechoState_update(ALechoState *state, const ALCdevice *Device, co state->FeedGain = props->Echo.Feedback; - gain = minf(1.0f - props->Echo.Damping, 0.0625f); /* Limit -24dB */ + gain = maxf(1.0f - props->Echo.Damping, 0.0625f); /* Limit -24dB */ ALfilterState_setParams(&state->Filter, ALfilterType_HighShelf, gain, LOWPASSFREQREF/frequency, calc_rcpQ_from_slope(gain, 1.0f)); |