Rename freq_scale parameter to freq_mult

This commit is contained in:
Chris Robinson 2014-05-17 01:32:55 -07:00
parent a11e1c0858
commit c5b25ba2a7
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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)