pub unsafe extern "C" fn ff_audio_mix_set_func(
am: *mut AudioMix,
fmt: AVSampleFormat,
coeff_type: AVMixCoeffType,
in_channels: c_int,
out_channels: c_int,
ptr_align: c_int,
samples_align: c_int,
descr: *const c_char,
mix_func: *mut c_void,
)
Expand description
Set mixing function if the parameters match.
This compares the parameters of the mixing function to the parameters in the AudioMix context. If the parameters do not match, no changes are made to the active functions. If the parameters do match and the alignment is not constrained, the function is set as the generic mixing function. If the parameters match and the alignment is constrained, the function is set as the optimized mixing function.
@param am AudioMix context @param fmt input/output sample format @param coeff_type mixing coefficient type @param in_channels number of input channels, or 0 for any number of channels @param out_channels number of output channels, or 0 for any number of channels @param ptr_align buffer pointer alignment, in bytes @param samples_align buffer size alignment, in samples @param descr function type description (e.g. “C” or “SSE”) @param mix_func mixing function pointer