snd_mixer_get_filter()

Get the current mask of mixer events that the driver is tracking

Synopsis:

#include <sys/asoundlib.h>

int snd_mixer_get_filter(
       snd_mixer_t *handle, 
       snd_mixer_filter_t *filter );

Arguments:

handle
The handle for the mixer device. This must have been created by snd_mixer_open() .
filter
A pointer to a snd_mixer_filter_t structure that snd_mixer_get_filter() fills in with the mask.

Library:

libasound.so

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

Description:

The snd_mixer_get_filter() function fills the snd_mixer_filter_t structure with a mask of all mixer events for the mixer that the handle was opened on that the driver is tracking.

You can arrange to have your application receive notification when an event occurs by calling select() on the mixer's file descriptor, which you can get by calling snd_mixer_file_descriptor() . You can use snd_mixer_read() to read the event's data.

Returns:

Zero on success, or a negative value on error.

Errors:

-EINVAL
Invalid handle or filter is NULL.

Classification:

QNX Neutrino

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