The AVAudioFifo will be reallocated automatically if the available space
is less than nb_samples.
@see enum AVSampleFormat
The documentation for AVSampleFormat describes the data layout.
@param af AVAudioFifo to write to
@param data audio data plane pointers
@param nb_samples number of samples to write
@return number of samples actually written, or negative AVERROR
code on failure. If successful, the number of samples
actually written will always be nb_samples.
Write data to an AVAudioFifo.
The AVAudioFifo will be reallocated automatically if the available space is less than nb_samples.
@see enum AVSampleFormat The documentation for AVSampleFormat describes the data layout.
@param af AVAudioFifo to write to @param data audio data plane pointers @param nb_samples number of samples to write @return number of samples actually written, or negative AVERROR code on failure. If successful, the number of samples actually written will always be nb_samples.