avresample_set_compensation

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

@nogc nothrow extern (C)
int
avresample_set_compensation

Meta