snd_pcm_format_size(9)
snd_pcm_format_size – return the byte size of samples on the given format
Synopsis
ssize_t snd_pcm_format_size(snd_pcm_format_tformat, size_tsamples);
Arguments
format
- the format to check
samples
- sampling rate
Return
The byte size of the given samples for the format, or a negative error code if unknown format.