diff options
author | Chris Robinson <[email protected]> | 2014-05-17 01:32:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-17 01:32:55 -0700 |
commit | c5b25ba2a76e50090c82dc0e246bce422ce9e4fc (patch) | |
tree | 660323ff5534dc5a301c649752f84f8cb94cd5b5 | |
parent | a11e1c08580a622acd9367be08171e167eab2a57 (diff) |
Rename freq_scale parameter to freq_mult
-rw-r--r-- | OpenAL32/Include/alFilter.h | 2 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index 6ff7c4fc..4a66ef9b 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -32,7 +32,7 @@ typedef struct ALfilterState { } ALfilterState; void ALfilterState_clear(ALfilterState *filter); -void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_scale, ALfloat bandwidth); +void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_mult, ALfloat bandwidth); inline ALfloat ALfilterState_processSingle(ALfilterState *filter, ALfloat sample) { diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 4d017ee2..70595aa0 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -335,7 +335,7 @@ void ALfilterState_clear(ALfilterState *filter) filter->y[1] = 0.0f; } -void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_scale, ALfloat bandwidth) +void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_mult, ALfloat bandwidth) { ALfloat alpha; ALfloat w0; @@ -343,7 +343,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g // Limit gain to -100dB gain = maxf(gain, 0.00001f); - w0 = F_2PI * freq_scale; + w0 = F_2PI * freq_mult; /* Calculate filter coefficients depending on filter type */ switch(type) |