Peek the next change event.
#include <audio/audio_manager_event.h>
int audio_manager_peek_event(audio_manager_event_context_t *context, int fd, audio_manager_event_type_t *event_type, void **event_params)
The context returned by audio_manager_get_event_context().
The file descriptor returned by audio_manager_get_event_fd().
The type of the event triggered.
The parameters of the event triggered. The caller is responsible for casting the pointer to the proper change event structure.
The audio_manager_peek_event() function checks whether any event has occured and returns the event if one is found. If an event is found, the event is cleared by calling the audio_manager_dispatch_event() function.
EOK upon success, negative errno upon failure.