Retrieves the PCM filters that your application is subscribed to.
#include <sys/asoundlib.h> int snd_pcm_get_filter( (snd_pcm_t *pcm, int channel, snd_pcm_filter_t * filter);
The snd_pcm_get_filter() function fills the snd_pcm_filter_t structure with a mask of all PCM events for the channel that the handle was opened on.
You can arrange to have your application receive notification when an event occurs by calling select() on the channel, You can use snd_pcm_channel_read_event() to read the event's data.
EOK on success, a negative errno upon failure. The errno values are available in the errno.h file.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |