audio_manager_get_handle_type()

Get the audio type of the specified audio manager handle.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_get_handle_type(unsigned int audioman_handle, audio_manager_audio_type_t *type, audio_manager_device_t *pref_output, audio_manager_device_t *pref_input)

Since:

BlackBerry 10.0.0

Arguments:

audioman_handle

The handle to the audio source that the new type is applied to.

type

The audio type that's been set on the specified audio manager handle.

pref_output

The preferred output routing of the handle.

pref_input

The preferred input routing of the handle.

Library:

libaudio_manager (For the qcc command, use the -l audio_manager option to link against this library)

Description:

An audio manager handle is used to track each audio source. Use audio_manager_get_handle_type() to return the audio type of the specified handle to an audio source and the overrides of the default audio routing policy type. The audio routing policy type contains the preferred output and input audio devices.

Returns:

EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.