[−][src]Function ffmpeg_dev::sys::ff_audio_data_alloc
pub unsafe extern "C" fn ff_audio_data_alloc(
channels: c_int,
nb_samples: c_int,
sample_fmt: AVSampleFormat,
name: *const c_char
) -> *mut AudioData
Allocate AudioData.
This allocates an internal buffer and sets audio parameters.
@param channels channel count @param nb_samples number of samples to allocate space for @param sample_fmt sample format @param name name for debug logging (can be NULL) @return newly allocated AudioData struct, or NULL on error