snd_pcm_format_linear()

Updated: May 06, 2022

Check for a linear format

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_format_linear( 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

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

Description:

The snd_pcm_format_linear() function checks to see if the format is linear. The supported linear formats are:

For a list of all the supported formats, see snd_pcm_get_format_name().

Returns:

1
The format is a linear format.
0
The format isn't a linear format.

Classification:

QNX Neutrino

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