Set the keep-alive status in the handle to the audio source.
#include <audio/audio_manager_routing.h>
int audio_manager_set_handle_keep_alive(unsigned int audioman_handle, int direction)
BlackBerry 10.1.0
The audio manager handle that the keep-alive status applies to.
A bitmask of AUDIO_INPUT or AUDIO_OUTPUT to control keep-alive.
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.
EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.