Get general information about the PCM device
#include <sys/asoundlib.h>
int snd_pcm_info( snd_pcm_t * handle,
snd_pcm_info_t * info );
libasound.so
The snd_pcm_info() function fills the info structure with data about the PCM device selected by handle.
typedef struct snd_pcm_info {
int card;
unsigned int device;
unsigned int type;
unsigned int flags;
unsigned char id[64];
unsigned char name[80];
int playback;
int capture;
int shared_card;
int shared_device;
char reserved[64];
} snd_pcm_info_t;
where
Zero on success, or an error code.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |