Get the required buffer size for the given audio parameters.
@paramout linesize calculated linesize, may be NULL
@param nb_channels the number of channels
@param nb_samples the number of samples in a single channel
@param sample_fmt the sample format
@param align buffer size alignment (0 = default, 1 = no alignment)
@return required buffer size, or negative error code on failure
Get the required buffer size for the given audio parameters.
@paramout linesize calculated linesize, may be NULL @param nb_channels the number of channels @param nb_samples the number of samples in a single channel @param sample_fmt the sample format @param align buffer size alignment (0 = default, 1 = no alignment) @return required buffer size, or negative error code on failure