[Previous] [Contents] [Next]

snd_mixer_group_write()

Write the snd_mixer_group_t structure

Synopsis:

#include <sys/asoundlib.h>

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

Library:

libasound.so

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.

Examples:

See the example in Adjusting hardware dependent values in the Controlling volume and balance chapter.

Classification:

ALSA

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

See also:

snd_mixer_group_read(), snd_mixer_groups()


[Previous] [Contents] [Next]