AuDeviceAttributes3nas
Device attributes structure
Structures
#include <audio/audiolib.h>
typedef struct _AuDeviceAttributes
{
. . .
}AuDeviceAttributes;
Members
Do not dereference the members of the AuDeviceAttributes structure directly. Instead use the access macros.
da is a pointer to a AuDeviceAttributes structure.
AuDeviceValueMask(da)-
Accesses the
AuMaskvalue indicating what attributes are present. This is a bitwise inclusive OR of these constants:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompDeviceMinSampleRateMask,AuCompDeviceMaxSampleRateMask,AuCompDeviceLocationMask,AuCompDeviceGainMask,AuCompDeviceLineModeMask, andAuCompDeviceChildrenMask.
AuDeviceChangableMask(da)-
Accesses the
AuMaskvalue indicating which attributes can be changed. This is a bitwise inclusive OR of these constants:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompDeviceMinSampleRateMask,AuCompDeviceMaxSampleRateMask,AuCompDeviceLocationMask,AuCompDeviceGainMask,AuCompDeviceLineModeMask, andAuCompDeviceChildrenMask.
AuDeviceIdentifier(da)-
Accesses the
AuFlowIDID of the device.
AuDeviceKind(da)-
Accesses the int value indicating the kind of component. Devices are either
AuComponentKindPhysicalInputorAuComponentKindPhysicalOutput.
AuDeviceUse(da)-
Accesses the
AuMaskvalue indicating what uses of the device are permitted. This is a bitwise inclusive OR of these constants:AuComponentUseImportMaskandAuComponentUseExportMask.
AuDeviceFormat(da)-
Accesses the int value indicating the audio data format the device uses. Currently, the following formats are defined:
AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatLinearSigned16LSB, andAuFormatLinearUnsigned16LSB.
AuDeviceNumTracks(da)-
Accesses the int value indicating the number of tracks the device supports.
AuDeviceAccess(da)-
Accesses the
AuMaskvalue indicating what kinds of access are allowed. This is a bitwise inclusive OR of these constants:AuAccessImportMask,AuAccessExportMask,AuAccessDestroyMask, andAuAccessListMask.
AuDeviceDescription(da)-
Accesses the
AuStringstructure containing a textual description of the device.
AuDeviceMinSampleRate(da)-
Accesses the unsigned int value indicating the minimum sample rate supported by the device.
AuDeviceMaxSampleRate(da)-
Accesses the unsigned int value indicating the maximum sample rate supported by the device.
AuDeviceLocation(da)-
Accesses the
AuMaskvalue indicating the location of the device. This is a bitwise inclusive OR of these constants:AuDeviceLocationLeftMask,AuDeviceLocationCenterMask,AuDeviceLocationRightMask,AuDeviceLocationTopMask,AuDeviceLocationMiddleMask,AuDeviceLocationBottomMask,AuDeviceLocationBackMask,AuDeviceLocationFrontMask,AuDeviceLocationInternalMask, andAuDeviceLocationExternalMask
AuDeviceGain(da)-
Accesses the
AuFixedPointvalue with the current hardware amplification level.
AuDeviceLineMode(da)-
Accesses the
AuInt32value indicating the current line mode (input device only).
AuDeviceNumChildren(da)-
Accesses the int value indicating the number of subcomponents of the device.
AuDeviceChildren(da)-
Accesses the list of
AuDeviceID's of the subcomponents of the device.
Overview
The AuDeviceAttributes structure describes the physical hardware interface.
Releases
14 releases since Debian 2.1 (Slink); the text changed 6 times.