pub unsafe extern "C" fn ff_frame_pool_audio_init(
alloc: Option<unsafe extern "C" fn(size: c_int) -> *mut AVBufferRef>,
channels: c_int,
samples: c_int,
format: AVSampleFormat,
align: c_int,
) -> *mut FFFramePool
Expand description
Allocate and initialize an audio frame pool.
@param alloc a function that will be used to allocate new frame buffers when the pool is empty. May be NULL, then the default allocator will be used (av_buffer_alloc()). @param channels channels of each frame in this pool @param nb_samples number of samples of each frame in this pool @param format format of each frame in this pool @param align buffers alignement of each frame in this pool @return newly created audio frame pool on success, NULL on error.