audio_manager_set_handle_type()

Set the audio type of the specified audio manager handle.

Synopsis:

#include <audio/audio_manager_routing.h>
 
int audio_manager_set_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 audio manager handle that the new type is applied to.

type

The new audio type that's set to the specified audio manager handle. If AUDIO_TYPE_UNCHANGED is specified, the audio type is unchanged.

pref_output

The preferred output routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the preferred output device is unchanged.

pref_input

The preferred input routing of the new audio type. If AUDIO_DEVICE_UNCHANGED is specified, the p referred input device is unchanged.

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. The audio_manager_set_handle_type() function sets the audio type of a specified handle to the audio source and specifies the option to override the default audio type routing policy. To override the default audio type policy, the preferred output and input audio devices are specified.

Returns:

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