diff options
author | Chris Robinson <[email protected]> | 2018-01-13 09:14:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-13 09:14:46 -0800 |
commit | 78cb70a5f9f2782e1335aea03168ffee2fea0122 (patch) | |
tree | 7bb585fdfb3fd0a4c310d50c45de1b4092400535 /OpenAL32/alFilter.c | |
parent | 16e4e0fa7c97d8b7273e590adc9432f317f93d57 (diff) |
Replace some freq_mult variable names with f0norm
The latter is a bit more descriptive as f0 is often used to denote the
reference frequency of a filter, so f0norm indicates the normalized reference
frequency (ref_freq / sample_rate).
Diffstat (limited to 'OpenAL32/alFilter.c')
-rw-r--r-- | OpenAL32/alFilter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 6e07d41b..4771414a 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -39,7 +39,7 @@ extern inline void ALfilterState_clear(ALfilterState *filter); extern inline void ALfilterState_copyParams(ALfilterState *restrict dst, const ALfilterState *restrict src); extern inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALsizei numsamples); extern inline ALfloat calc_rcpQ_from_slope(ALfloat gain, ALfloat slope); -extern inline ALfloat calc_rcpQ_from_bandwidth(ALfloat freq_mult, ALfloat bandwidth); +extern inline ALfloat calc_rcpQ_from_bandwidth(ALfloat f0norm, ALfloat bandwidth); static void InitFilterParams(ALfilter *filter, ALenum type); @@ -355,7 +355,7 @@ AL_API ALvoid AL_APIENTRY alGetFilterfv(ALuint filter, ALenum param, ALfloat *va } -void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_mult, ALfloat rcpQ) +void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat f0norm, ALfloat rcpQ) { ALfloat alpha, sqrtgain_alpha_2; ALfloat w0, sin_w0, cos_w0; @@ -365,7 +365,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g // Limit gain to -100dB assert(gain > 0.00001f); - w0 = F_TAU * freq_mult; + w0 = F_TAU * f0norm; sin_w0 = sinf(w0); cos_w0 = cosf(w0); alpha = sin_w0/2.0f * rcpQ; |