Fills the info structure with data about the PCM device selected by handle. Function returns zero if successful, otherwise it returns an error code.
typedef struct snd_pcm_info { unsigned int type; /* soundcard type */ unsigned int flags; /* see SND_PCM_INFO_XXXX */ unsigned char id[64]; /* ID of this PCM device */ unsigned char name[80]; /* name of this device */ int playback; /* playback subdevices - 1 */ int capture; /* capture subdevices - 1 */ char reserved[64]; /* reserved for future... */ } snd_pcm_info_t;
Flag | Description |
---|---|
SND_PCM_INFO_PLAYBACK | Playback channel is present. |
SND_PCM_INFO_CAPTURE | Capture channel is present. |
SND_PCM_INFO_DUPLEX | Hardware is capable the duplex operation. |
SND_PCM_INFO_DUPLEX_RATE | Playback and capture rates must be same for the duplex operation. |
SND_PCM_INFO_DUPLEX_RATE | Playback and capture must be monophonic for the duplex operation. |