[Previous] [Contents] [Next]

snd_pcm_build_linear_format()

Build a linear format

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_build_linear_format( int width, 
                                 int unsigned, 
                                 int big_endian );

Library:

libasound.so

Description:

The snd_pcm_build_linear_format() function returns linear format build from given components.

Returns:

Positive value (SND_PCM_SFMT_*) on success, or an error code.

Errors:

-1
Invalid argument.

Examples:

See the example in Closing the mixer in the Controlling volume and balance chapter.

Classification:

ALSA

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

[Previous] [Contents] [Next]