av_samples_alloc

Allocate a samples buffer for nb_samples samples, and fill data pointers and linesize accordingly. The allocated samples buffer can be freed by using av_freep(&audio_data[0])

@see enum AVSampleFormat The documentation for AVSampleFormat describes the data layout.

@paramout audio_data array to be filled with the pointer for each channel @paramout linesize aligned size for audio buffer(s), may be NULL @param nb_channels number of audio channels @param nb_samples number of samples per channel @param align buffer size alignment (0 = default, 1 = no alignment) @return 0 on success or a negative error code on failure @see av_samples_fill_arrays()

extern (C)
int
av_samples_alloc

Meta