audio_manager_get_device_audio_config()

Get the audio configuration of the specified device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_audio_config(audio_manager_device_t dev, audio_manager_device_audio_config_t *config)

Since:

BlackBerry 10.0.0

Arguments:

dev

The type of the audio device to query. If AUDIO_DEVICE_DEFAULT is passed to this function, the num_in_channels returned represents the number of input channels available from the current default input device. The rest of the fields represent the settings of the current default output device.

config

The audio configuration.

Library:

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

Description:

Use audio_manager_get_device_audio_config() to retrieve the audio configuration of the specified audio device. The configuration is retrieved by passing a reference to a audio_manager_device_audio_config_t member.

Returns:

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