Adjust the sample rate of floating-point audio.
import { resample } from "@shanzhai/resample";
const inputSamples = [-1, -0.5, 0, 0.5, 1];
const outputSamples = resample(inputSamples, 44100, 22050);
This package has no runtime dependencies.
This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).