Audio capabilities that can be queried.
Synopsis:
#include <audio/audio_manager_device.h>
typedef enum {
AUDIO_DEVICE_PROPERTY_NUM_OUT_CHANNELS
AUDIO_DEVICE_PROPERTY_NUM_IN_CHANNELS
AUDIO_DEVICE_PROPERTY_CHANNEL_ORDER
AUDIO_DEVICE_PROPERTY_CHANNEL_CONFIG
AUDIO_DEVICE_PROPERTY_SUPPORTED
AUDIO_DEVICE_PROPERTY_CONNECTED
AUDIO_DEVICE_PROPERTY_SUSPENDED
AUDIO_DEVICE_PROPERTY_VOLUME_CONTROL
AUDIO_DEVICE_PROPERTY_PUBLIC
AUDIO_DEVICE_PROPERTY_NUM_HW_IN_CHANNELS
AUDIO_DEVICE_PROPERTY_COUNT
} audio_manager_device_capabilities_t;
Data:
-
AUDIO_DEVICE_PROPERTY_NUM_OUT_CHANNELS
- The number of output channel(s) supported; of type int.
-
AUDIO_DEVICE_PROPERTY_NUM_IN_CHANNELS
- The number of input channels(s) supported; of type int.
-
AUDIO_DEVICE_PROPERTY_CHANNEL_ORDER
- The output channels, listed in setup order; of type audio_manager_channel_t[].
-
This parameter is only permitted if AUDIO_DEVICE_PROPERTY_NUM_OUT_CHANNELS is requested as well. If the number of channels
is greater than the input value for AUDIO_DEVICE_PROPERTY_NUM_OUT_CHANNELS then, at most, the input value will be written.
-
AUDIO_DEVICE_PROPERTY_CHANNEL_CONFIG
- The audio device configuration of the audio device; of type audio_manager_channel_config_t.
-
The value may be multiple values from this enum or'ed together.
-
AUDIO_DEVICE_PROPERTY_SUPPORTED
- Whether the device is supported on this platform; of type bool.
-
AUDIO_DEVICE_PROPERTY_CONNECTED
- Whether the device is currently connected; of type bool.
-
For example, in the case of headphones, indicates whether the headphones are plugged in.
-
AUDIO_DEVICE_PROPERTY_SUSPENDED
- Whether the device is suspended; of type bool.
-
AUDIO_DEVICE_PROPERTY_VOLUME_CONTROL
- The type of volume control supported by the device; of type audio_manager_device_volume_control_t.
-
AUDIO_DEVICE_PROPERTY_PUBLIC
- Whether the device is public; of type bool.
-
This means a device may be listened to by multiple listeners, such as a speaker, as opposed to a private device listened to
by one person, such as a headphone.
-
AUDIO_DEVICE_PROPERTY_NUM_HW_IN_CHANNELS
- The number of input channels supported by the device.
-
This enumerator represents the true number of input channels that a device supports and therefore differs from the AUDIO_DEVICE_PROPERTY_NUM_IN_CHANNELS enumerator.
-
AUDIO_DEVICE_PROPERTY_COUNT
- The total number of device properties supported.
Library:
libaudio_manager
Description: