Function avresample_set_compensation

Source
pub unsafe extern "C" fn avresample_set_compensation(
    avr: *mut AVAudioResampleContext,
    sample_delta: c_int,
    compensation_distance: c_int,
) -> c_int
Expand description

@deprecated use libswresample

Set compensation for resampling.

This can be called anytime after avresample_open(). If resampling is not automatically enabled because of a sample rate conversion, the “force_resampling” option must have been set to 1 when opening the context in order to use resampling compensation.

@param avr audio resample context @param sample_delta compensation delta, in samples @param compensation_distance compensation distance, in samples @return 0 on success, negative AVERROR code on failure