pub unsafe extern "C" fn av_samples_get_buffer_size(
linesize: *mut c_int,
nb_channels: c_int,
nb_samples: c_int,
sample_fmt: AVSampleFormat,
align: c_int,
) -> c_int
Expand description
Get the required buffer size for the given audio parameters.
@param[out] linesize calculated linesize, may be NULL @param nb_channels the number of channels @param nb_samples the number of samples in a single channel @param sample_fmt the sample format @param align buffer size alignment (0 = default, 1 = no alignment) @return required buffer size, or negative error code on failure