snd_pcm_format_big_endian()

Check for a big-endian format

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_format_big_endian( int format );

Since:

BlackBerry 10.0.0

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

Use the -l asound option to qcc to link against this library.

Description:

The snd_pcm_format_big_endian() function checks to see if format is big-endian.

Returns:

1
The format is in big-endian byte order.
0
The format isn't in big-endian byte order.

Otherwise, it returns a negative error code.

Errors:

-EINVAL
Invalid format with respect to endianness.

Classification:

QNX Neutrino

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

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus