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 /Alc/bformatdec.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 'Alc/bformatdec.c')
-rw-r--r-- | Alc/bformatdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/bformatdec.c b/Alc/bformatdec.c index 6503ac65..2c5326d4 100644 --- a/Alc/bformatdec.c +++ b/Alc/bformatdec.c @@ -11,9 +11,9 @@ #include "almalloc.h" -void bandsplit_init(BandSplitter *splitter, ALfloat freq_mult) +void bandsplit_init(BandSplitter *splitter, ALfloat f0norm) { - ALfloat w = freq_mult * F_TAU; + ALfloat w = f0norm * F_TAU; ALfloat cw = cosf(w); if(cw > FLT_EPSILON) splitter->coeff = (sinf(w) - 1.0f) / cw; @@ -75,9 +75,9 @@ void bandsplit_process(BandSplitter *splitter, ALfloat *restrict hpout, ALfloat } -void splitterap_init(SplitterAllpass *splitter, ALfloat freq_mult) +void splitterap_init(SplitterAllpass *splitter, ALfloat f0norm) { - ALfloat w = freq_mult * F_TAU; + ALfloat w = f0norm * F_TAU; ALfloat cw = cosf(w); if(cw > FLT_EPSILON) splitter->coeff = (sinf(w) - 1.0f) / cw; |