audio_manager_get_event()

Get the next change event.

Synopsis:

#include <audio/audio_manager_event.h>
 
int audio_manager_get_event(audio_manager_event_context_t *context, audio_manager_event_type_t *event_type, void **event_params)

Arguments:

context

The context returned by audio_manager_get_event_context().

event_type

The type of the event triggered.

event_params

The parameters of the event triggered. The caller is responsible for casting the pointer to the proper change event structure.

Library:

libaudio_manager

Description:

The audio_manager_get_event() function blocks until the next change event is available. This function is used for typical message get/dispatch event loops. The event returned is cleared by calling the audio_manager_dispatch_event() function.

Returns:

EOK upon success, negative errno upon failure.