Function rsmpeg::ffi::av_samples_get_buffer_size[][src]

pub unsafe extern "C" fn av_samples_get_buffer_size(
    linesize: *mut i32,
    nb_channels: i32,
    nb_samples: i32,
    sample_fmt: i32,
    align: i32
) -> i32
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