Function ff_audio_data_init

Source
pub unsafe extern "C" fn ff_audio_data_init(
    a: *mut AudioData,
    src: *const *mut u8,
    plane_size: c_int,
    channels: c_int,
    nb_samples: c_int,
    sample_fmt: AVSampleFormat,
    read_only: c_int,
    name: *const c_char,
) -> c_int
Expand description

Initialize AudioData using a given source.

This does not allocate an internal buffer. It only sets the data pointers and audio parameters.

@param a AudioData struct @param src source data pointers @param plane_size plane size, in bytes. This can be 0 if unknown, but that will lead to optimized functions not being used in many cases, which could slow down some conversions. @param channels channel count @param nb_samples number of samples in the source data @param sample_fmt sample format @param read_only indicates if buffer is read only or read/write @param name name for debug logging (can be NULL) @return 0 on success, negative AVERROR value on error