audio_manager_is_device_kept_alive()

Check whether the specified audio device is kept in standby mode 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)

Since:

BlackBerry 10.0.0

Arguments:

dev

The type of the audio device to check against.

keep_alive

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.

Library:

libaudio_manager (For the qcc command, use the -l audio_manager option to link against this library)

Description:

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.

Returns:

EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.