| Updated: October 28, 2024 | 
Get a PCM event
#include <sys/asoundlib.h>
int snd_pcm_channel_read_event (snd_pcm_t * pcm,
                                int channel, 
                                snd_pcm_event_t * event);
This function retrieves the PCM events (snd_pcm_event_t) for the specified channel. To receive events, the client application must first register for event using snd_pcm_set_filter(). This call is a non-blocking call. Use select() (with excepttfds) or poll (with POLLRDBAND).
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 | Read the Caveats | 
This function is not thread safe if pcm (snd_pcm_t) is used across multiple threads.