QNX Developer Support
Get information about a PCM channel's capabilities from a control handle
#include <sys/asoundlib.h> int snd_ctl_pcm_channel_info( snd_ctl_t *handle, int dev, int chn, int subdev, snd_pcm_channel_info_t *info );
- The handle for the control connection to the card. This must be a handle created by snd_ctl_open().
- The PCM device number.
- The channel direction; either SND_PCM_CHANNEL_CAPTURE or SND_PCM_CHANNEL_PLAYBACK.
- The PCM subchannel.
- A pointer to a snd_pcm_channel_info_t structure in which snd_ctl_pcm_channel_info() stores the information.
The snd_ctl_pcm_channel_info() function fills the info structure with data about the PCM subchannel subdev in the PCM channel chn on the sound card selected by handle.
|This function gets information about the complete capabilities of the system. It's similar to snd_pcm_channel_info() and snd_pcm_plugin_info(), but these functions get a dynamic "snapshot" of the system's current capabilities, which can shrink and grow as subchannels are allocated and freed.|
Zero on success, or a negative error code.
- Invalid handle.