resampleByRatio function

Float64List resampleByRatio(
  1. List<double> input,
  2. double ratio
)

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());