Get a mixer switch setting
#include <sys/asoundlib.h > int snd_ctl_mixer_switch_read( snd_ctl_t *handle, int dev, snd_switch_t * sw )
- The handle for the control device. This must have been created by snd_ctl_open().
- The mixer device the switches apply to.
- A pointer to a snd_switch_t structure that snd_ctl_mixer_switch_read() fills with information about the switch.
Use the -l asound option to qcc to link against this library.
The snd_ctl_mixer_switch_read() function reads the snd_switch_t structure for the switch identified by the name member of the structure.
Zero on success, or a negative value if an error occurs.
- Invalid handle argument.
- The group wasn't found.
Last modified: 2013-09-30