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
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