[Previous] [Contents] [Next]

snd_pcm_format_size()

Convert size in samples to bytes

Synopsis:

#include <sys/asoundlib.h>

ssize_t snd_pcm_format_size( int format, 
                             size_t samples );

Library:

libasound.so

Description:

The snd_pcm_format_size() function converts the size in samples to bytes according to given format.

Returns:

A positive value on success, or an error code.

Errors:

-EINVAL
Invalid format.

Classification:

ALSA

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

[Previous] [Contents] [Next]