resampleByRatio function
Resamples the input
audio by the given sampling ratio
. If ratio
> 1
the result will have more samples.
See resample for more information.
Implementation
Float64List resampleByRatio(List<double> input, double ratio) =>
resample(input, (input.length * ratio).round());