aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-25 05:52:19 -0700
committerChris Robinson <[email protected]>2017-08-25 05:52:19 -0700
commit561e95528f55be2837541239236281c4cd63d728 (patch)
tree6d57db817feef0cc132293e0c319dd2796a8bc41 /Alc/ALu.c
parent9ea32713b57fd95832172de5e8d8534339bb646b (diff)
Rename the bsinc resampler to bsinc12
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index d5e85873..17227f8a 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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;