pub unsafe extern "C" fn ff_audio_resample(
c: *mut ResampleContext,
dst: *mut AudioData,
src: *mut AudioData,
) -> c_int
Expand description
Resample audio data.
Changes the sample rate.
@par All samples in the source data may not be consumed depending on the resampling parameters and the size of the output buffer. The unconsumed samples are automatically added to the start of the source in the next call. If the destination data can be reallocated, that may be done in this function in order to fit all available output. If it cannot be reallocated, fewer input samples will be consumed in order to have the output fit in the destination data buffers.
@param c ResampleContext @param dst destination audio data @param src source audio data @return 0 on success, negative AVERROR code on failure