Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
snd_pcm_format_signed

snd_pcm_format_signed

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

snd_pcm_format_signed()

Check for a signed format

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_format_signed( int format );

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

Library:

libasound.so

Description:

The snd_pcm_format_signed() function checks for a signed format.

Returns:

1
The format is signed.
0
The format is unsigned.

Otherwise, it returns a negative error code.

Errors:

-EINVAL
Invalid format with respect to sign.

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_size(), snd_pcm_format_unsigned(), snd_pcm_format_width(), snd_pcm_get_format_name()