Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 8

snd_pcm_format_size()

Convert the size in the given samples to bytes

Synopsis:

#include <sys/asoundlib.h>

ssize_t snd_pcm_format_size( int format, 
                             size_t num_samples );

Arguments:

format
The format number (one of the SND_PCM_SFMT_* constants). For a list of the supported formats, see snd_pcm_get_format_name().
num_samples
The number of samples for which you want to determine the size.

Library:

libasound.so

Description:

The snd_pcm_format_size() function calculates the size, in bytes, of num_samples samples of data in the given format.

Returns:

A positive value on success, or a negative error code.

Errors:

-EINVAL
Invalid format.

Classification:

QNX Neutrino

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

See also:

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 127

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/audio/libs/snd_pcm_format_size.html on line 127