pub fn resampler_from_quality<T: Sample>(
num_channels: usize,
in_sample_rate: u32,
out_sample_rate: u32,
config: ResamplerConfig,
) -> Box<dyn Resampler<T>>Expand description
Create a new Resampler with the given settings.
num_channels- The number of audio channels.in_sample_rate- The sample rate of the input data.out_sample_rate- The sample rate of the output data.config- Extra configuration for the resampler.
ยงPanics
Panics if:
num_channels == 0in_sample_rate == 0out_sample_rate == 0config.chunk_size == 0config.sub_chunks == 0