audio_manager_set_handle_keep_alive()

Set the keep-alive status in the handle to the audio source.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_set_handle_keep_alive(unsigned int audioman_handle, int direction)

Since:

BlackBerry 10.1.0

Arguments:

audioman_handle

The audio manager handle that the keep-alive status applies to.

direction

A bitmask of AUDIO_INPUT or AUDIO_OUTPUT to control keep-alive.

Library:

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

Description:

An audio manager handle is used to track each audio source. Use the audio_manager_set_handle_keep_alive() function to set the keep-alive status to the audio manager handle. When you set the keep-alive status, the device is kept in a standby status as opposed to a powered off status. Setting the keep-alive status means that audio continues to route to the specified even when there is no audio being played or recorded. Keeping the device in a standby status can increase the consumption of power.

Returns:

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