Function avresample_set_matrix

Source
pub unsafe extern "C" fn avresample_set_matrix(
    avr: *mut AVAudioResampleContext,
    matrix: *const f64,
    stride: c_int,
) -> c_int
Expand description

@deprecated use libswresample

Set channel mixing matrix.

Allows for setting a custom mixing matrix, overriding the default matrix generated internally during avresample_open(). This function can be called anytime on an allocated context, either before or after calling avresample_open(), as long as the channel layouts have been set. avresample_convert() always uses the current matrix. Calling avresample_close() on the context will clear the current matrix.

@see avresample_close()

@param avr audio resample context @param matrix mixing coefficients; matrix[i + stride * o] is the weight of input channel i in output channel o. @param stride distance between adjacent input channels in the matrix array @return 0 on success, negative AVERROR code on failure