audio_manager_get_handle()

Get the audio manager handle for a given audio type.

Synopsis:

#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)

Arguments:

type

The type of the audio manager handle to query.

caller_pid

The ID of the process that the audio manager handle is allocated for (0 = the current process ID).

start_suspended

true if the audio manager handle is suspended after allocation, false otherwise.

audioman_handle

The audio manager handle allocated.

Library:

libaudio_manager

Description:

The audio_manager_get_handle() function returns the audio manager handle of a given type with a flag indicating whether the handle is immediately activated or not.

Returns:

EOK upon success, negative errno upon failure.