Get the audio manager handle for a given audio type.
#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)
The type of the runtime of the audio manager to query.
The type of the audio manager handle to query.
The ID of the process that the audio manager handle is allocated for (0 = the current process ID).
true if the audio manager handle is suspended after allocation, false otherwise.
The audio manager handle allocated.
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.
EOK upon success, negative errno upon failure.