audio_manager_get_device_audio_config()

Get the audio configuration of a given audio 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)

Arguments:

dev

The type of the audio device to query. If AUDIO_DEVICE_DEFAULT is passed in, the num_in_channels returned represents the number of input channels of 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

Description:

The audio_manager_get_device_audio_config() function returns the audio configuration of the given audio device, using audio_manager_device_audio_config_t.

Returns:

EOK upon success, negative errno upon failure.