1AuDeviceAttributes(3) Library Functions Manual AuDeviceAttributes(3)
2
3
4
6 AuDeviceAttributes - device attributes structure
7
9 #include <audio/audiolib.h>
10
11 typedef struct _AuDeviceAttributes
12 {
13 . . .
14 }AuDeviceAttributes;
15
17 Do not dereference the members of the AuDeviceAttributes structure
18 directly. Instead use the access macros.
19
20 da is a pointer to a AuDeviceAttributes structure.
21
22 AuDeviceValueMask(da)
23 Accesses the AuMask value indicating what attributes are
24 present. This is a bitwise inclusive OR of these constants:
25 AuCompCommonIDMask, AuCompCommonKindMask, AuCompCommonUse‐
26 Mask, AuCompCommonFormatMask, AuCompCommonNumTracksMask,
27 AuCompCommonAccessMask, AuCompCommonDescriptionMask, AuCom‐
28 pDeviceMinSampleRateMask, AuCompDeviceMaxSampleRateMask,
29 AuCompDeviceLocationMask, AuCompDeviceGainMask, AuCompDevice‐
30 LineModeMask, and AuCompDeviceChildrenMask.
31
32 AuDeviceChangableMask(da)
33 Accesses the AuMask value indicating which attributes can be
34 changed. This is a bitwise inclusive OR of these constants:
35 AuCompCommonIDMask, AuCompCommonKindMask, AuCompCommonUse‐
36 Mask, AuCompCommonFormatMask, AuCompCommonNumTracksMask,
37 AuCompCommonAccessMask, AuCompCommonDescriptionMask, AuCom‐
38 pDeviceMinSampleRateMask, AuCompDeviceMaxSampleRateMask,
39 AuCompDeviceLocationMask, AuCompDeviceGainMask, AuCompDevice‐
40 LineModeMask, and AuCompDeviceChildrenMask.
41
42 AuDeviceIdentifier(da)
43 Accesses the AuFlowID ID of the device.
44
45 AuDeviceKind(da)
46 Accesses the int value indicating the kind of component.
47 Devices are either AuComponentKindPhysicalInput or AuCompo‐
48 nentKindPhysicalOutput.
49
50 AuDeviceUse(da)
51 Accesses the AuMask value indicating what uses of the device
52 are permitted. This is a bitwise inclusive OR of these con‐
53 stants: AuComponentUseImportMask and AuComponentUseExport‐
54 Mask.
55
56 AuDeviceFormat(da)
57 Accesses the int value indicating the audio data format the
58 device uses. Currently, the following formats are defined:
59 AuFormatULAW8, AuFormatLinearUnsigned8, AuFormatLinear‐
60 Signed8, AuFormatLinearSigned16MSB, AuFormatLinearUn‐
61 signed16MSB, AuFormatLinearSigned16LSB, and AuFormatLinearUn‐
62 signed16LSB.
63
64 AuDeviceNumTracks(da)
65 Accesses the int value indicating the number of tracks the
66 device supports.
67
68 AuDeviceAccess(da)
69 Accesses the AuMask value indicating what kinds of access are
70 allowed. This is a bitwise inclusive OR of these constants:
71 AuAccessImportMask, AuAccessExportMask, AuAccessDestroyMask,
72 and AuAccessListMask.
73
74 AuDeviceDescription(da)
75 Accesses the AuString structure containing a textual descrip‐
76 tion of the device.
77
78 AuDeviceMinSampleRate(da)
79 Accesses the unsigned int value indicating the minimum sample
80 rate supported by the device.
81
82 AuDeviceMaxSampleRate(da)
83 Accesses the unsigned int value indicating the maximum sample
84 rate supported by the device.
85
86 AuDeviceLocation(da)
87 Accesses the AuMask value indicating the location of the
88 device. This is a bitwise inclusive OR of these constants:
89 AuDeviceLocationLeftMask, AuDeviceLocationCenterMask, AuDe‐
90 viceLocationRightMask, AuDeviceLocationTopMask, AuDeviceLoca‐
91 tionMiddleMask, AuDeviceLocationBottomMask, AuDeviceLocation‐
92 BackMask, AuDeviceLocationFrontMask, AuDeviceLocationInter‐
93 nalMask, and AuDeviceLocationExternalMask
94
95 AuDeviceGain(da)
96 Accesses the AuFixedPoint value with the current hardware
97 amplification level.
98
99 AuDeviceLineMode(da)
100 Accesses the AuInt32 value indicating the current line mode
101 (input device only).
102
103 AuDeviceNumChildren(da)
104 Accesses the int value indicating the number of subcomponents
105 of the device.
106
107 AuDeviceChildren(da)
108 Accesses the list of AuDeviceID's of the subcomponents of the
109 device.
110
112 The AuDeviceAttributes structure describes the physical hardware inter‐
113 face.
114
116 AuGetDeviceAttributes, AuListDevices.
117
118 audiolib - Network Audio System C Language Interface
119
120
121
122
123audiolib - device attributes structure1.9.2 AuDeviceAttributes(3)