diff options
author | Chris Robinson <[email protected]> | 2017-02-22 18:07:41 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-22 18:07:41 -0800 |
commit | d04cc28f33c5a21273fc42c023b41dbcfa89632b (patch) | |
tree | cbd5673166d0656cff03ed95d3deffe96c02be1a /OpenAL32 | |
parent | 629980d15ee8f87c916cefee79bbb692e34a1266 (diff) |
Limit filter gains to -24dB
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 150d84b5..855a7c6b 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -362,7 +362,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g ALfloat b[3] = { 1.0f, 0.0f, 0.0f }; // Limit gain to -100dB - gain = maxf(gain, 0.00001f); + assert(gain > 0.00001f); w0 = F_TAU * freq_mult; sin_w0 = sinf(w0); |