#ifdef NALL_DSP_INTERNAL_HPP void DSP::resampleLinear() { while(resampler.fraction <= 1.0) { double channel[2]; for(unsigned n = 0; n < 2; n++) { double a = buffer.read(n, -1); double b = buffer.read(n, -0); double mu = resampler.fraction; channel[n] = a * (1.0 - mu) + b * mu; } resamplerWrite(channel[0], channel[1]); resampler.fraction += resampler.step; } buffer.rdoffset++; resampler.fraction -= 1.0; } #endif