Check whether the specified audio device is kept in standby mode by the system.
#include <audio/audio_manager_device.h>
int audio_manager_is_device_kept_alive(audio_manager_device_t dev, bool *keep_alive)
BlackBerry 10.0.0
The type of the audio device to check against.
A pointer that's returned that indicates whether the device is in standby. A value of true indicates that the specified audio device is in a standby status, false indicates otherwise.
Use audio_manager_is_device_kept_alive() to determine whether the specified audio device is currently kept in a standby status by the system - even when no audio streams are active. Use this function to avoid the creation of excessive audio artifacts, which is caused by hardware transitions.
EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.