28 static forcedinline
float valueAtOffset (
const float*
const inputs,
const float offset)
noexcept
38 return y1 + offset * ((0.5f * y2 -
halfY0)
39 + (offset * (((
y0 + 2.0f * y2) - (
halfY3 + 2.5f * y1))
40 + (offset * ((
halfY3 + 1.5f * y1) - (
halfY0 + 1.5f * y2))))));
44CatmullRomInterpolator::CatmullRomInterpolator()
noexcept {
reset(); }
45CatmullRomInterpolator::~CatmullRomInterpolator() noexcept {}
51 for (
auto&
s : lastInputSamples)
Holds a resizable array of primitive or copy-by-value objects.
int processAdding(double speedRatio, const float *inputSamples, float *outputSamples, int numOutputSamplesToProduce, float gain) noexcept
Resamples a stream of samples, adding the results to the output data with a gain.
void reset() noexcept
Resets the state of the interpolator.
int process(double speedRatio, const float *inputSamples, float *outputSamples, int numOutputSamplesToProduce) noexcept
Resamples a stream of samples.