|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Set a mixer group's configurable parameters
#include <sys/asoundlib.h> int snd_mixer_group_write( snd_mixer_t *handle, snd_mixer_group_t *group );
- The handle for the mixer device. This must have been created by snd_mixer_open().
- A pointer to a snd_mixer_group_t, structure that contains the information you want to set for the mixer group.
The snd_mixer_group_write() function writes the snd_mixer_group_t structure to the driver. This structure contains the volume levels and mutes associated with the group.
Zero on success, or a negative value on error.
- The group has been modified by another application.
- Invalid handle argument.
- The group wasn't found.
The write may fail with -EBUSY if another application has modified the group, and this application hasn't read that event yet using snd_mixer_read().