audio_manager_get_handle_for_runtime()

Get the audio manager handle for a given audio type.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_get_handle_for_runtime(audio_manager_runtime_t runtime, audio_manager_audio_type_t type, pid_t caller_pid, bool start_suspended, unsigned int *audioman_handle)

Arguments:

runtime

The type of the runtime of the audio manager to query.

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_runtime() function returns the audio manager handle of a given type with a flag indicating whether the handle is immediately activated or not.

This function should be used only by different runtimes which implement their own ducking rules. Applications should not use this function directly.

Returns:

EOK upon success, negative errno upon failure.