snd_mixer_group_write()

Set a mixer group's configurable parameters

Synopsis:

#include <sys/asoundlib.h>

int snd_mixer_group_write(
       snd_mixer_t *handle, 
       snd_mixer_group_t *group );

Arguments:

handle
The handle for the mixer device. This must have been created by snd_mixer_open().
group
A pointer to a snd_mixer_group_t structure that contains the information you want to set for the mixer group.

Library:

libasound.so

Use the -l asound option to qcc to link against this library.

Description:

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.

Returns:

Zero on success, or a negative value on error.

Errors:

-EBUSY
The group has been modified by another application.
-EINVAL
Invalid handle argument.
-ENXIO
The group wasn't found.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

Caveats:

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().