Get the audio manager handle for the provided audio type.
#include <audio/audio_manager_routing.h>
int audio_manager_get_handle(audio_manager_audio_type_t type, pid_t caller_pid, bool start_suspended, unsigned int *audioman_handle)
BlackBerry 10.0.0
The type of audio type to query from the audio manager service.
The ID of the process that the audio manager handle is allocated for. The value of zero represents the current process ID.
Whether the handle is to be suspended after allocation. A value of true to suspend the audio source after allocation while a value of false indicates otherwise.
The handle to the audio source that's allocated.
An audio manager handle is used to track each audio source. Use audio_manager_get_handle() to return a handle based on the audio type and a flag that indicates whether the handle is immediately activated.
EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.