diff options
author | Chris Robinson <[email protected]> | 2017-08-25 05:52:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-25 05:52:19 -0700 |
commit | 561e95528f55be2837541239236281c4cd63d728 (patch) | |
tree | 6d57db817feef0cc132293e0c319dd2796a8bc41 /Alc/ALu.c | |
parent | 9ea32713b57fd95832172de5e8d8534339bb646b (diff) |
Rename the bsinc resampler to bsinc12
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -234,7 +234,7 @@ ALboolean BsincPrepare(const ALuint increment, BsincState *state) if(increment > FRACTIONONE) { sf = (ALfloat)FRACTIONONE / increment; - if(sf < bsinc.scaleBase) + if(sf < bsinc12.scaleBase) { /* Signal has been completely cut. The return result can be used * to skip the filter (and output zeros) as an optimization. @@ -245,7 +245,7 @@ ALboolean BsincPrepare(const ALuint increment, BsincState *state) } else { - sf = (BSINC_SCALE_COUNT - 1) * (sf - bsinc.scaleBase) * bsinc.scaleRange; + sf = (BSINC_SCALE_COUNT - 1) * (sf - bsinc12.scaleBase) * bsinc12.scaleRange; si = fastf2i(sf); /* The interpolation factor is fit to this diagonally-symmetric * curve to reduce the transition ripple caused by interpolating @@ -261,9 +261,9 @@ ALboolean BsincPrepare(const ALuint increment, BsincState *state) } state->sf = sf; - state->m = bsinc.m[si]; + state->m = bsinc12.m[si]; state->l = -((state->m/2) - 1); - state->filter = bsinc.Tab + bsinc.filterOffset[si]; + state->filter = bsinc12.Tab + bsinc12.filterOffset[si]; return uncut; } @@ -1038,7 +1038,7 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *p voice->Step = MAX_PITCH<<FRACTIONBITS; else voice->Step = maxi(fastf2i(Pitch*FRACTIONONE + 0.5f), 1); - if(props->Resampler == BSincResampler) + if(props->Resampler == BSinc12Resampler) BsincPrepare(voice->Step, &voice->ResampleState.bsinc); else voice->ResampleState.sinc4.filter = sinc4Tab; @@ -1384,7 +1384,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop voice->Step = MAX_PITCH<<FRACTIONBITS; else voice->Step = maxi(fastf2i(Pitch*FRACTIONONE + 0.5f), 1); - if(props->Resampler == BSincResampler) + if(props->Resampler == BSinc12Resampler) BsincPrepare(voice->Step, &voice->ResampleState.bsinc); else voice->ResampleState.sinc4.filter = sinc4Tab; |