audio_manager_get_device_button_states()

Get the current button states of a given output device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_button_states(audio_manager_device_t dev, audio_manager_headset_button_state_t *state)

Arguments:

dev

The default audio device.

state

The current button states.

Library:

libaudio_manager

Description:

The audio_manager_get_device_button_states() function returns the states of all the supported buttons of a given device. Currently, only headset is supported.

Returns:

EOK upon success, negative errno upon failure.