audio_manager_is_device_kept_alive()

Check whether a given audio device is kept alive by the system.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_is_device_kept_alive(audio_manager_device_t dev, bool *keep_alive)

Arguments:

dev

The type of the audio device to check against.

keep_alive

true if the specified audio device is kept alive, false otherwise.

Library:

libaudio_manager

Description:

The audio_manager_is_device_kept_alive() function checks whether a given audio device is currently kept alive by the system even when no audio streams are active. This is typically done to avoid excessive audio artifacts caused by hardware transitions.

Returns:

EOK upon success, negative errno upon failure.