1AuMakeElementImportClient(3)Library Functions ManualAuMakeElementImportClient(3)
2
3
4
6 AuMakeElementImportClient - initialize an ImportClient element
7
9 #include <audio/audiolib.h>
10
11 AuMakeElementImportClient(element, sample_rate, format, num_tracks,
12 discard, max_samples, low_water_mark, num_actions, actions)
13 AuElement *element; /* RETURN */
14 unsigned short sample_rate;
15 unsigned char format;
16 unsigned char num_tracks;
17 unsigned char discard;
18 AuUint32 max_samples;
19 AuUint32 low_water_mark;
20 int num_actions;
21 AuElementAction *actions;
22
24 element Returns the initialized element.
25
26 sample_rate
27 Specifies the sample rate of the audio data.
28
29 format Specifies the format of the audio data. Currently, the fol‐
30 lowing formats are defined: AuFormatULAW8, AuFormatLinearUn‐
31 signed8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB,
32 AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and
33 AuFormatLinearUnsigned16LSB.
34
35 num_tracks
36 Specifies the number of tracks in the audio data.
37
38 discard Specifies if the import should be paused initally. Normally
39 AuTrue. AuFalse may crash the server.
40
41 max_samples
42 Specifies the maximum number of samples to accept in a single
43 read. Ignored for "trivial" flows.
44
45 low_water_mark
46 Specifies when to request additional audio data from the
47 client application. When this number of samples are left in
48 the buffer, and an EOF hasn't been received, a NotifyEvent
49 with kind set to AuElementNotifyKindLowWater will be sent to
50 the client application.
51
52 num_actions
53 Specifies the number of actions in actions.
54
55 actions Specifies the list of actions to associate with this element.
56 Entries in this list can be initialized with AuMakeChangeS‐
57 tateAction, AuMakeSendNotifyAction, and AuMakeNoopAction.
58 May be NULL.
59
61 AuMakeElementImportClient sets the type of element to AuElementTypeIm‐
62 portClient and initializes the importclient member of element with the
63 remaining arguments.
64
65 AuMakeElementImportClient is implemented as a macro.
66
68 AuMakeElementAddConstant, AuMakeElementBundle, AuMakeElementExport‐
69 Client, AuMakeElementExportDevice, AuMakeElementExportBucket, AuMa‐
70 keElementExportMonitor, AuMakeElementImportDevice, AuMakeElementImport‐
71 Bucket, AuMakeElementImportWaveForm, AuMakeElementMultiplyConstant,
72 AuMakeElementSum.
73
74 audiolib - Network Audio System C Language Interface
75
76
77
78audiolib - element initialization 1.9.4 AuMakeElementImportClient(3)