audio_manager_set_handle_keep_alive()

Set the keep-alive status for the handle.

Synopsis:

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

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 direction. An empty bitmask will disable keep-alive.

Library:

libaudio_manager

Description:

The audio_manager_set_handle_keep_alive() function sets the keep-alive status of the handle. When audio is being routed according to this handle, the device being routed to will be kept ready, at a possible cost in power, even when no audio is being played or recorded.

Returns:

EOK upon success, negative errno upon failure.