| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Convert the size in the given samples to bytes
#include <sys/asoundlib.h>
ssize_t snd_pcm_format_size( int format, 
                             size_t num_samples );
libasound.so
The snd_pcm_format_size() function calculates the size, in bytes, of num_samples samples of data in the given format.
A positive value on success, or a negative error code.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes | 
snd_pcm_build_linear_format(), snd_pcm_format_big_endian(), snd_pcm_format_little_endian(), snd_pcm_format_signed(), snd_pcm_format_unsigned(), snd_pcm_format_width(), snd_pcm_get_format_name()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |