Check for linear format
#include <sys/asoundlib.h> int snd_pcm_format_linear( int format );
libasound.so
The snd_pcm_format_linear() function checks to see if the format is linear.
One if the format is linear (SND_PCM_SFMT_x8, x16, x24, x32), or an error code.
None.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |